API to retrieve token from custom module

Hi Team,

I would like to have custom link in smartdocs page. When I click on link, it has to call makeAjaxCall function[devconnect/smartdocs/local/js/v6/model.js] and where I am going to pass Client ID, Client Secret, Username and Password. So that I will receive a token. Or Do we have any api to receive the token when I pass the above things as arguments. Please provide me the steps that can be done from custom module.

Regards,

Veera

0 1 185
1 REPLY 1

Hi @Veera Prasad,

1-Please Find the attached file copy the code and paste in created smartDocs model and import the OAuth WADL file to generate the token.

2-The Second way you can create own custom module where you can call you OAuth Proxy and send Consumer Key ,Secrete Key in parameter and get the access token.

by-apikeys-generate-token.zip