New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API always returns 401 #905
Comments
Hi @EorlBruder ! This example looks outdated, as the JWT token is passed using the |
Okay, thanks for clarifying that. Following kotlin Code isn't working as expected:
IAT returned 1501238004 |
You might be interested in this Kotlin/Java example provided by @Braincoke: |
@virtualtam Thank You! That snippet helped me and now it's working. |
Glad I could help! |
Closes shaarli#905 Relates to shaarli#751 See https://shaarli.github.io/api-documentation/ Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Relates to shaarli#903 Relates to shaarli#905 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Closes shaarli#905 Relates to shaarli#751 See https://shaarli.github.io/api-documentation/ Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Relates to shaarli#903 Relates to shaarli#905 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
I am trying to write some code interacting with the API and whatever I do, I get "Not authorized" back.
In an attempt to troubleshoot this I used the example from the docs https://shaarli.readthedocs.io/en/master/REST-API/#complete-example and this too fails completly. I adjusted $secret to reflect my "API secret", the $apiEndpoint to be "$myshaarli/v1/api/links".
In Shaarli "Enable REST API" is set. Did I forget something?
The text was updated successfully, but these errors were encountered: