@@ -41,28 +41,28 @@ Finally, go to [localhost:8000](http://localhost:8000/). Voila! You're chirping.
41
41
42
42
We'll now take you through installing the JavaScript SDK within your own project.
43
43
44
- ### 1. Include the file ` chirpjs .min.js` within your project.
44
+ ### 1. Include the file ` chirpSDK .min.js` within your project.
45
45
46
- Copy ` chirpjs .min.js` to your project folder, and include it within your HTML:
46
+ Copy ` chirpSDK .min.js` to your project folder, and include it within your HTML:
47
47
48
48
```
49
- <script src="chirpjs .min.js"></script>
49
+ <script src="chirpSDK .min.js"></script>
50
50
```
51
51
52
- ### 2. Create a new instance of ` Chirpjs ` with your application key.
52
+ ### 2. Create a new instance of ` ChirpSDK ` with your application key.
53
53
54
54
Replace ` YOUR_APP_KEY ` with your application's key.
55
55
56
56
```
57
- var chirpjs = new Chirpjs ("YOUR_APP_KEY");
57
+ var chirpjs = new ChirpSDK ("YOUR_APP_KEY");
58
58
```
59
59
60
- At this point, ` Chirpjs ` will automatically try to authenticate your application.
60
+ At this point, ` ChirpSDK ` will automatically try to authenticate your application.
61
61
62
62
To catch the authentication response, you can pass a callback function as a second argument.
63
63
64
64
```
65
- var chirpjs = new Chirpjs ("YOUR_APP_KEY", function(err, res) {
65
+ var chirpjs = new ChirpSDK ("YOUR_APP_KEY", function(err, res) {
66
66
if (err) {
67
67
console.error(err); return;
68
68
}
0 commit comments