Skip to content

Commit

Permalink
Updated example main
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGherardelli committed Sep 11, 2024
1 parent 577d92f commit 200a2ee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,21 @@ Please follow the [installation procedure](#installation--usage) and then run th

import data_bridges_client
from data_bridges_client.rest import ApiException
from data_bridges_client.token import
from pprint import pprint

# Configure OAuth2 access token for authorization: default
KEY = ''
SECRET = ''
SCOPES = ['', '']
token = WfpApiToken(api_key=KEY, api_secret=SECRET)

# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/1.4.0
# See configuration.py for a list of all supported configuration parameters.
configuration = data_bridges_client.Configuration(
host = "https://api.wfp.org/vam-data-bridges/4.1.0"
host = "https://api.wfp.org/vam-data-bridges/5.0.0"
)
configuration.access_token = token.refresh()
configuration.access_token = token.refresh(scopes=SCOPES)

# Enter a context with an instance of the API client
with data_bridges_client.ApiClient(configuration) as api_client:
Expand All @@ -90,7 +92,7 @@ with data_bridges_client.ApiClient(configuration) as api_client:

## Documentation for API Endpoints

All URIs are relative to *https://api.wfp.org/vam-data-bridges/4.1.0*
All URIs are relative to *https://api.wfp.org/vam-data-bridges/5.0.0*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down

0 comments on commit 200a2ee

Please sign in to comment.