This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
@jonathandey, how did you manage to make the refresh token work? Mind sharing? Thanks!
I implemented https://github.com/jonathandey/oc-jd-dingoapi but when I run http://developer.dev/api/home I don't get 'Got here.'
The API_PREFIX is also set to 'api' .
This is my code:
$api->version('v1', ['prefix' => 'api'], function ($api) {
$api->get('home', function () {
dd('Got here.');
return ['now' => microtime()];
});
});
Any idea?
aurelijus.useckas16377 said:
@jonathandey, how did you manage to make the refresh token work? Mind sharing? Thanks!
Would you mind elaborating a little more?
If memory serves me correctly the refresh token is in the response header from the server.
chrisiek - Did you also include the code from the Plugin.php file? See the boot and register methods.
You will also need to require your routes file in the boot method of the Plugin.php file. Example:
require realpath(__DIR__ . '/http/api/routes.php');
Any further questions related to my plugin please direct them to issues on the Github page. This is now going off-topic from the original question.