docs/

directory
v0.0.0-...-d3d53d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2016 License: BSD-3-Clause

README

Itsyou.online

Clients

GO

In your code, import the client from itsyou.online:

import "github.com/itsyouonline/identityserver/clients/go/itsyouonline"
Python

There is no pypi published python client yet but it is available at https://github.com/itsyouonline/identityserver/tree/master/clients/python/itsyouonline

Example:

Get a client_id and client_secret as described in the client credentials oauth flow.

client = itsyouonline.Client()
applicationid = 'YYYYYY'
secret = 'XXXXXXXXX'
client.oauth.LoginViaClientCredentials(client_id=applicationid, client_secret=secret)

client.api.GetUserPhonenumberByLabel('Home', 'John').json()

If you have a normal oauth token, you can set it on the client as well:

client.api.session.headers['Authorization'] = 'token <oauth token>'

Or when you have a jwt:

client.api.session.headers['Authorization'] = 'bearer <jwt>'
Jumpscale

The itsyou.online client is preregistered in Jumpscale: https://github.com/Jumpscale/jumpscale_core8/blob/master/lib/JumpScale/clients/itsyouonline/readme.md

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL