Skip to content

Latest commit

 

History

History
executable file
·
37 lines (28 loc) · 1.23 KB

README.md

File metadata and controls

executable file
·
37 lines (28 loc) · 1.23 KB

Rewardsciencesapilib

This API SDK was automatically generated by APIMATIC v2.0

This SDK uses the Requests library and will work for Python 2.7 — 3.5.

How to configure:

The generated code might need to be configured with your API credentials. To do that, open the file "Configuration.py" and edit its contents.

How to resolve dependencies:

The generated code uses Python packages named requests, jsonpickle and dateutil. You can resolve these dependencies using pip ( https://pip.pypa.io/en/stable/ ).

  1. From terminal/cmd navigate to the root directory of the SDK.
  2. Invoke 'pip install -r requirements.txt'

Note: You will need internet access for this step.

How to use:

After having resolved the dependencies, you can easily use the SDK following these steps.

  1. Create a "rewardsciencesapilib_test.py" file in the root directory.
  2. Use any controller as follows:
from __future__ import print_function
from rewardsciencesapilib.reward_sciences_api_client import *

api_client = RewardSciencesAPIClient()
controller = api_client.rewards
response = controller.redeem(<required parameters if any>)

print(response)