@anitrack/patreon-wrapper 1.1.0 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +14 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -18,7 +18,18 @@ $ yarn add @anitrack/patreon-wrapper
18
18
 
19
19
  ## Example
20
20
 
21
- #### Authorization
21
+ ### Importing
22
+
23
+ CommonJS
24
+ ```js
25
+ const { Patreon } = require('@AniTrack/patreon-wrapper')
26
+ ```
27
+ Typescript ES6
28
+ ```js
29
+ import { Patreon } from '@AniTrack/patreon-wrapper'
30
+ ```
31
+
32
+ Authorization
22
33
  ```js
23
34
  Patreon.Authorization({
24
35
  AccessToken: 'YOUR_API_V2_ACCESS_TOKEN',
@@ -65,13 +76,13 @@ Clean Response Example
65
76
  lifetimeCents: 0,
66
77
  firstCharge: 'DATE',
67
78
  nextCharge: 'DATE',
68
- lastCharge: null
79
+ lastCharge: 'DATE'
69
80
  }
70
81
  },
71
82
  mediaConnection: {
72
83
  patreon: {
73
84
  id: '12345678',
74
- url: 'https://www.patreon.com/api/oauth2/v2/user/70437054'
85
+ url: 'https://www.patreon.com/api/oauth2/v2/user/12345678'
75
86
  },
76
87
  discord: {
77
88
  id: 'DISCORD_USER_ID',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anitrack/patreon-wrapper",
3
- "version": "1.1.0",
3
+ "version": "1.1.5",
4
4
  "description": "Discord Patreon wrapper for AniTrack",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib",