How to use the splitwise.Splitwise function in splitwise

To help you get started, we’ve selected a few splitwise examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github namaggarwal / splitwise / e2e-tests / test_group.py View on Github external
def test_group_invalidkeys_fail(self):
        sObj = Splitwise('consumerkey', 'consumersecret', {"oauth_token": "sdsd", "oauth_token_secret": "sdsdd"})
        group = Group()
        with self.assertRaises(SplitwiseUnauthorizedException):
            sObj.createGroup(group)
github namaggarwal / splitwise / tests / test_createGroup.py View on Github external
def setUp(self):
        self.sObj = Splitwise('consumerkey', 'consumersecret')
github namaggarwal / splitwise / e2e-tests / test_group.py View on Github external
def setUp(self):
        consumer_key = os.environ['CONSUMER_KEY']
        consumer_secret = os.environ['CONSUMER_SECRET']
        oauth_token = os.environ['OAUTH_TOKEN']
        oauth_token_secret = os.environ['OAUTH_TOKEN_SECRET']

        self.sObj = Splitwise(consumer_key, consumer_secret)
        self.sObj.setAccessToken({'oauth_token': oauth_token, 'oauth_token_secret': oauth_token_secret})
github namaggarwal / splitwise / tests / test_createExpense.py View on Github external
def setUp(self):
        self.sObj = Splitwise('consumerkey', 'consumersecret')
github namaggarwal / splitwise / tests / test_getExpenses.py View on Github external
def setUp(self):
        self.sObj = Splitwise('consumerkey', 'consumersecret')
github namaggarwal / splitwise / tests / test_getGroups.py View on Github external
def setUp(self):
        self.sObj = Splitwise('consumerkey', 'consumersecret')
github namaggarwal / splitwise / tests / test_getFriends.py View on Github external
def setUp(self):
        self.sObj = Splitwise('consumerkey', 'consumersecret')
github namaggarwal / splitwise / tests / test_getGroup.py View on Github external
def setUp(self):
        self.sObj = Splitwise('consumerkey', 'consumersecret')
github scalability4all / voice-enabled-chatbot / microbots / splitwise / app.py View on Github external
def login():

    sObj = Splitwise(Config.consumer_key, Config.consumer_secret)
    url, secret = sObj.getAuthorizeURL()
    session['secret'] = secret
    return redirect(url)
github scalability4all / voice-enabled-chatbot / microbots / splitwise / app.py View on Github external
def authorize():

    if 'secret' not in session:
        return redirect(url_for("home"))

    oauth_token = request.args.get('oauth_token')
    oauth_verifier = request.args.get('oauth_verifier')

    sObj = Splitwise(Config.consumer_key, Config.consumer_secret)
    access_token = sObj.getAccessToken(oauth_token, session['secret'], oauth_verifier)
    session['access_token'] = access_token

    return redirect(url_for("friends"))