Introduction
An example for accessing google maps rest api using rieapie.
import rieapie
gmap = rieapie.Api("http://maps.googleapis.com/maps/api")
args = {
"origin" : "Toronto"
,"destination" : "Montreal"
,"avoid" : "highways"
,"mode" : "bicycling"
,"sensor" : "false"
}
directions = gmap.directions.json.get(**args)
print directions["routes"][0]["bounds"]
An example for accessing the twitter api with the provided twitter wrapper.
import rieapie
params = {
"consumer_key" : "..."
,"consumer_secret" : "..."
}
# or if you want to provide an access token
params = {
"consumer_key" : "..."
,"consumer_secret" : "..."
,"access_token" : "..",
,"access_token_secret" : ".."
}
twitter = rieapie.wrappers.Twitter( **params )
timeline = twitter.statuses.user_timeline(ext="json")
# or if you prefer this syntax
timeline = twitter.statuses["user_timeline.json"]
for status in timeline.get(count=10, screen_name="mybestfriend"):
print status['text']
WTF is that name?
[R]est [i]s [E]asy [a]s [P]ython [i]s [E]asy
[R]est [i]s [E]asy [a]s [PIE]
[R]est [i]s [E]asy [API]… [E]asy
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rieapie-0.0.7.2.tar.gz
(5.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
rieapie-0.0.7.2-py2.7.egg
(10.6 kB
view details)
File details
Details for the file rieapie-0.0.7.2.tar.gz.
File metadata
- Download URL: rieapie-0.0.7.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a30461735872b16c591435707fb017da7d0d4e4f4d56fc855016b4d10ed94f6a
|
|
| MD5 |
8029c0bca784169942a2babf29889c27
|
|
| BLAKE2b-256 |
341d8466df1b9e555b9d42ba3d16e903610f50b7003149bf6ad01bc5efe0289a
|
File details
Details for the file rieapie-0.0.7.2-py2.7.egg.
File metadata
- Download URL: rieapie-0.0.7.2-py2.7.egg
- Upload date:
- Size: 10.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b944bd7cddaee09d06b9f6e94d73a74af871d48df6d96a718e226549efa43d5b
|
|
| MD5 |
278a17e07d705143d01ff9883606368a
|
|
| BLAKE2b-256 |
185335f2c0c062d0d4d7370279b444d3bb2771a8ac38f5156af8f76d6cf95853
|