forked from dmalin/eztexting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RELEASE_NOTES
executable file
·41 lines (29 loc) · 1.64 KB
/
RELEASE_NOTES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Carrier Lookup Account Issues
The Ez Texting service has a slight caveat for usage of the carrier lookup command. Unfortunately the account system is setup so that
you must have one account for the Carrier lookup API command and another for all other commands. To use this gem with respect to this
issue you need to swap the accounts (calling the Eztexting.connect! method) when using the carrier lookup command and then swap
if back to your account for the rest of the API when you use those commands
Example
---------------------------------------------------------
1) Cache your credentials for your account for the API
# Account for API usage (except carrier lookup)
Eztexting.connect!(username_for_api_without_carrier,password)
# => "credentials cached"
2) Use as you wish for all commands except the carrier lookup
options = {
:subject => "testing out how awesome eztexting is",
:phonenumber => "5555555555",
:message => "Wow this is so simple and easy to use"
}
Eztexting::Sms.single(options)
# => ["Message Sent",1]
Eztexting::Credits.balance
# => ["The amount of plan and additional credits available", 54353]
3) Swap your credentials by calling the connect! method again with the different account information
Eztexting.connect!(carrier_lookup_enabled_account,password)
# => "credentials cached
4) Call the lookup command as much as you need
Eztexting::Lookup.carrier(5555555555)
5) When you need to use any of the other API commands change your cached credentials back to the account for the rest of the API
Eztexting.connect!(username_for_api_without_carrier,password)
# => "credentials cached"