oauth-itau

oAuth para produção

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.40.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import oauth_itau 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import oauth_itau

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import oauth_itau
from oauth_itau.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = oauth_itau.DefaultApi(oauth_itau.ApiClient(configuration))
client_id = 'client_id_example' # str |  (optional)
client_secret = 'client_secret_example' # str |  (optional)
grant_type = 'client_credentials' # str |  (optional) (default to client_credentials)
scope = 'scope' # str |  (optional) (default to scope)

try:
    # post /oauth/token
    api_response = api_instance.postoauthtoken(client_id=client_id, client_secret=client_secret, grant_type=grant_type, scope=scope)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->postoauthtoken: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://sts.itau.com.br/sandbox/api

Class Method HTTP request Description
DefaultApi postoauthtoken POST /oauth/token post /oauth/token

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author