skapi-js 0.0.2 → 0.0.3

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.
package/README.md CHANGED
@@ -27,20 +27,16 @@ $ npm i skapi-js
27
27
 
28
28
  ```
29
29
  import {Skapi} from 'skapi-js';
30
- Skapi.connect('your_service_id', 'your_user_id').then(async skapi => {
31
- // Code here!
32
- });
30
+ let skapi = new Skapi('your_service_id', 'your_user_id');
33
31
  ```
34
32
 
35
33
  For HTML projects:
36
34
  ```
37
35
  <head>
38
- <script src="https://skapi.com/lib/0.0.2/skapi.js">
36
+ <script src="https://skapi.com/lib/0.0.3/skapi.js">
39
37
  </head>
40
38
  <script>
41
- Skapi.connect('your_service_id', 'your_user_id').then(async skapi => {
42
- // Code here!
43
- });
39
+ let skapi = new Skapi('your_service_id', 'your_user_id');
44
40
  </script>
45
41
  ```
46
42