Skip to content

rewardsciences/rewardsciences-python

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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)

About

Reward Sciences Python SDK. Need help? Email us at support@rewardsciences.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages