Connectors

Catalyst Connectors manage the access token, by refreshing it automatically on expiry. In the background, it will be using the Catalyst CloudScale Cache for its implementation. A connector is illustrated with the following code block.

The response of the code block below returns the access token :

    
copy
connection_service = app.connection({ 'ConnectorName': { 'client_id': '1000.HN38DZYCSYQ8TU588BQ97RW44GSAMK', 'client_secret': '4740ebde1bdcb3d7c3d14193fcdffe8a9f7864196c', 'auth_url': 'https://accounts.zoho.com/oauth/v2/token?', 'refresh_url': 'https://accounts.zoho.com/oauth/v2/token?', 'refresh_token': '1000.2269c5fc1fb7a83374c020988f03db2f.1939bb136e7ae87b12a5e56af8776d22' } }) connector_details = { 'client_id': '1000.HN38DZYCSYQ8TU588BQ97RW44GSAMK', 'client_secret': '4740ebde1bdcb3d7c3d14193fcdffe8a9f7864196c', 'auth_url': 'https://accounts.zoho.com/oauth/v2/token?', 'refresh_url': 'https://accounts.zoho.com/oauth/v2/token?', 'refresh_token': '1000.2269c5fc1fb7a83374c020988f03db2f.1939bb136e7ae87b12a5e56af8776d22', 'connector_name': "connector_name", 'redirect_url': "https://sample-71779596.development.catalystserverless.com" } connector_service = Connector(connection_service, connector_details) access_token = connector_service.get_access_token()

ON THIS PAGE

RELATED LINKS

Cache