Easy REST api wrapper
Project description
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
twitter = rieapie.wrappers.Twitter("consumer_key", "consumer_secret")
timeline = twitter.statuses.user_timeline(ext="json")
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
Project details
Release history Release notifications | RSS feed
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.5.tar.gz
(3.8 kB
view hashes)
Built Distribution
rieapie-0.0.5-py2.7.egg
(6.9 kB
view hashes)