Skip to content

Commit

Permalink
Merge pull request #121 from mrteey/patch-1
Browse files Browse the repository at this point in the history
Update README.md to fix misleading AfricasTalking.MOBILEDATA to AfricasTalking.MOBILE_DATA
  • Loading branch information
aksalj authored Jan 7, 2024
2 parents 39aa189 + bf663f9 commit b102a86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ const credentials = {
apiKey: 'YOUR_API_KEY', // use your sandbox app API key for development in the test environment
username: 'YOUR_USERNAME', // use 'sandbox' for development in the test environment
};
const Africastalking = require('africastalking')(credentials);
const AfricasTalking = require('africastalking')(credentials);

// Initialize a service e.g. SMS
const sms = Africastalking.SMS
const sms = AfricasTalking.SMS

// Use the service
const options = {
Expand Down Expand Up @@ -59,7 +59,7 @@ Initialize the SDK as a requirement by doing `require('africastalking')(options)

- [Airtime Service](#airtime) : `AfricasTalking.AIRTIME`

- [Mobile Data Service](#mobiledata) : `AfricasTalking.MOBILEDATA`
- [Mobile Data Service](#mobiledata) : `AfricasTalking.MOBILE_DATA`

- [Voice Service](#voice) : `AfricasTalking.VOICE`

Expand Down

0 comments on commit b102a86

Please sign in to comment.