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.1.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.1-py2.7.egg
(10.6 kB
view details)
File details
Details for the file rieapie-0.0.7.1.tar.gz.
File metadata
- Download URL: rieapie-0.0.7.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7815faf56d7406220fa8905e8d4ff506abf4f9a94a9b37f1e44126758bd1498
|
|
| MD5 |
865248fdc1125def16e3350307d567d3
|
|
| BLAKE2b-256 |
a96c8f385aeabc6dfb027cb70fcd255da9a16f010626b75e9b899aa7a0cd7d57
|
File details
Details for the file rieapie-0.0.7.1-py2.7.egg.
File metadata
- Download URL: rieapie-0.0.7.1-py2.7.egg
- Upload date:
- Size: 10.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e899fdaa29df5fca90befab445095266f81987e2fb76b6abff702a17684c1bad
|
|
| MD5 |
eaba5c93b76e56e2d004aa511cfb9578
|
|
| BLAKE2b-256 |
22b6bb41f1fc6e8f03fe4cb802ba338fb291e76d5940520b1c4c7cccd9964d7b
|