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.
The generated code might need to be configured with your API credentials. To do that, open the file "Configuration.py" and edit its contents.
The generated code uses Python packages named requests, jsonpickle and dateutil. You can resolve these dependencies using pip ( https://pip.pypa.io/en/stable/ ).
- From terminal/cmd navigate to the root directory of the SDK.
- Invoke 'pip install -r requirements.txt'
Note: You will need internet access for this step.
After having resolved the dependencies, you can easily use the SDK following these steps.
- Create a "rewardsciencesapilib_test.py" file in the root directory.
- 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)