Git Product home page Git Product logo

geoloqi-python's Introduction

Geoloqi is a powerful platform for real-time location, messaging, and analytics. For more information visit Geoloqi.com.

Features

  • Full test suite!

Requirements

  • Mock (for tests)

Getting Started

You can install the library directly from PyPi with pip.

$ pip install geoloqi-python

You can create a config file that holds your client credentials. If you do so you won't have to provide them when instantiating a new Geoloqi object. The config file can be in the current user's home directory as .geoloqi or in the system /etc/geoloqi/geoloqi.config.

The configuration file should have the following format:

[Credentials]
user_access_token = <your_user_access_token>
application_access_key = <client_api_key>
application_secret_key = <client_api_secret>

You must provide either your user access token or your application's access key and secret. Either can be obtained from the Geoloqi developers site.

Examples

Get the active user's profile info:

>>> from geoloqi.geoloqi import Geoloqi
>>> g = Geoloqi(access_token="<your_user_access_token>")
>>> g.get('account/profile')

Create a new sharing link:

>>> from geoloqi.geoloqi import Geoloqi
>>> g = Geoloqi(access_token="<your_user_access_token>")
>>> g.post('link/create', {'minutes': 180,})
Note: If you have created a config file with your Geoloqi credentials your access token may be omitted in the examples above.

Documentation

Full documentation is available on Read the Docs.

Contributing

Please fork the project on GitHub and send us a pull request! If you have a problem, please file an issue and we'll respond as soon as we can.

There are many other ways to get support from the Geoloqi developers site.

Testing

Before you submitting a patch or a pull request please make sure you've written a test and run the full test suite.

$ python geoloqi/tests.py
Note: You must create a config file containing your Geoloqi credentials before you are able to run tests!

License

See the LICENSE file.

geoloqi-python's People

Contributors

twaddington avatar nelsonminar avatar wraithan avatar

Stargazers

 avatar

Watchers

 avatar James Cloos 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.