Dynamic Tokens for API

Dynamic Tokens for API

by syed shaffeque -
Number of replies: 2

Hi,

I am in need of a help regarding moodle API. Is there any option to create dynamic token, when API is called everytime?

Currently i am getting the same token when i use

https://www.yourmoodle.com/login/token.php?username=USERNAME&password=PASSWORD&service=SERVICESHORTNAME



Average of ratings: -
In reply to syed shaffeque

Re: Dynamic Tokens for API

by syed shaffeque -

Got Solution

To make dynamic API,  delete the existing record in 'external_token'.  Then on your each request there will be dynamic tokens inserted.

Delete the record in 'external_token' matching userid and externalserviceid.
Average of ratings: Useful (1)