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.2.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.2-py2.7.egg (10.6 kB view details)

Uploaded Egg

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

Hashes for rieapie-0.0.7.2.tar.gz
Algorithm Hash digest
SHA256 a30461735872b16c591435707fb017da7d0d4e4f4d56fc855016b4d10ed94f6a
MD5 8029c0bca784169942a2babf29889c27
BLAKE2b-256 341d8466df1b9e555b9d42ba3d16e903610f50b7003149bf6ad01bc5efe0289a

See more details on using hashes here.

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

Hashes for rieapie-0.0.7.2-py2.7.egg
Algorithm Hash digest
SHA256 b944bd7cddaee09d06b9f6e94d73a74af871d48df6d96a718e226549efa43d5b
MD5 278a17e07d705143d01ff9883606368a
BLAKE2b-256 185335f2c0c062d0d4d7370279b444d3bb2771a8ac38f5156af8f76d6cf95853

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.7.3

2 files

This release

0.0.7.2 This release

2 files

0.0.7.1

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