-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add verify, lookup and account functions
- Loading branch information
Showing
14 changed files
with
143 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import instasent | ||
|
||
client = instasent.Client('my-token') | ||
response = client.get_account_balance() | ||
|
||
print response['response_code'] | ||
print response['response_body'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import instasent | ||
|
||
client = instasent.Client('my-token') | ||
response = client.do_lookup('+34666666666') | ||
|
||
print response['response_code'] | ||
print response['response_body'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import instasent | ||
|
||
client = instasent.Client('my-token') | ||
response = client.get_lookup_by_id('id') | ||
|
||
print response['response_code'] | ||
print response['response_body'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import instasent | ||
|
||
client = instasent.Client('my-token') | ||
response = client.get_lookups('id') | ||
|
||
print response['response_code'] | ||
print response['response_body'] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import instasent | ||
|
||
client = instasent.Client('my-token') | ||
response = client.check_verify('id', 'token') | ||
|
||
print response['response_code'] | ||
print response['response_body'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import instasent | ||
|
||
client = instasent.Client('my-token') | ||
response = client.get_verify('id') | ||
|
||
print response['response_code'] | ||
print response['response_body'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import instasent | ||
|
||
client = instasent.Client('my-token') | ||
response = client.get_verify(1, 10) | ||
|
||
print response['response_code'] | ||
print response['response_body'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import instasent | ||
|
||
client = instasent.Client('my-token') | ||
response = client.request_verify('My company', '+34666666666', 'Your code is %token%') | ||
|
||
print response['response_code'] | ||
print response['response_body'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,12 @@ | |
setup( | ||
name='instasent', | ||
packages=['instasent'], | ||
version='0.1.3', | ||
version='0.1.4', | ||
description="Instasent's REST API", | ||
author='Instasent', | ||
author_email='[email protected]', | ||
url='https://github.com/instasent/instasent-python-lib', | ||
download_url='https://github.com/instasent/instasent-python-lib/archive/master.zip', | ||
download_url='https://github.com/instasent/instasent-python-lib/tarball/0.1.4', | ||
keywords=['instasent', 'sms'], | ||
install_requires=['requests'], | ||
) |