Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rieapie-0.0.7.1-py2.7.egg (10.6 kB view details)

Uploaded Egg

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

Hashes for rieapie-0.0.7.1.tar.gz
Algorithm Hash digest
SHA256 a7815faf56d7406220fa8905e8d4ff506abf4f9a94a9b37f1e44126758bd1498
MD5 865248fdc1125def16e3350307d567d3
BLAKE2b-256 a96c8f385aeabc6dfb027cb70fcd255da9a16f010626b75e9b899aa7a0cd7d57

See more details on using hashes here.

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

Hashes for rieapie-0.0.7.1-py2.7.egg
Algorithm Hash digest
SHA256 e899fdaa29df5fca90befab445095266f81987e2fb76b6abff702a17684c1bad
MD5 eaba5c93b76e56e2d004aa511cfb9578
BLAKE2b-256 22b6bb41f1fc6e8f03fe4cb802ba338fb291e76d5940520b1c4c7cccd9964d7b

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.7.3

2 files

0.0.7.2

2 files

This release

0.0.7.1 This release

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5.2

2 files

0.0.5.1

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page