Coder Social home page Coder Social logo

dhibbitts / adnpy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from appdotnet/adnpy

0.0 2.0 0.0 889 KB

ADNpy aims to be an easy to use python library for interacting with the App.net API.

Home Page: http://developers.app.net/

License: MIT License

Python 99.73% Shell 0.27%

adnpy's Introduction

ADNpy: App.net API for Python

https://badge.fury.io/py/adnpy.png https://travis-ci.org/appdotnet/ADNpy.png?branch=master

ADNpy aims to be an easy-to-use Python library for interacting with the App.net API.

Installation

To install Requests, simply:

$ pip install adnpy

Documentation

Documentation is available at http://adnpy.readthedocs.org/.

Quick Start

In order to use ADNpy, You'll to need an access token. If you don't already have one, first create an app, and then generate an access token for your app.

import adnpy
adnpy.api.add_authorization_token(<Access Token Here>)

# Create a post
post, meta = adnpy.api.create_post(data={'text':'Hello App.net from adnpy!'})

# Take a look at recent checkins
posts, meta = adnpy.api.get_explore_stream('checkins')
for post in posts:
  print post

# You can even paginate through checkins using the cursor method.
# Cursors will obey rate limits (by blocking until retries are
# permitted), and will allow you to page through the entire stream.
for post in adnpy.cursor(adnpy.api.get_explore_stream, 'checkins'):
    print post

adnpy's People

Contributors

berg avatar voidfiles avatar mthurman avatar dariusdunlap avatar mlv avatar

Watchers

James Cloos avatar Daniel Hibbitts avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.