Git Product home page Git Product logo

xtuple-python-rest-client-example's Introduction

xTuple ERP Python REST API Client Example

xTuple ERP Python REST API Client Example using the Google APIs Client Library for Python to interface with xTuple's REST API.

WARNING: This example in in no way secure or using best practices for Python application. This is meant for educational purposes only.

Install and Run the Client

  1. Clone or download this repo:
git clone [email protected]:xtuple/xtuple-python-rest-client-example.git
  1. Register for an OAuth 2.0 "Services Account" Client in your xTuple Mobile Client's "OAUTH2" interface. You will be prompted to download a PK12 keystore file. See OAuth 2.0 Service Accounts Scenario for more information.
  2. Save the PK12 keystore file in the same directory as this file and the contacts.py file.
  3. Edit the contacts.py file and set all your OAuth 2.0 Client settings. See all of the TODOs in the file to find out where to do that.
  4. Install the Google APIs Client Library for Python on your system so it is available for this example to import.
  5. Make sure your xTuple Mobile Client is running before running contacts.py.

Using the Example

Run the contacts.py script from the command line:

$ python contacts.py

You should be presented with a JSON object containting a list of contacts.

Credits

License

Apache License, Version 2.0

Copyright (c) 2012-2013 xTuple http://www.xtuple.com/

xtuple-python-rest-client-example's People

Contributors

bendiy 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.