We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey, awesome service. Question: could the response be modified to return a javascript file that sets the token?
So for instance:
<script src="https://ig.instant-tokens.com/users/XXXXXXXXXXXXXXXXXXXXXXXXX/instagram/XXXX/token.js"></script> -> returns var InstagramToken = 'TOKENXXXXXXXXXX';
<script src="https://ig.instant-tokens.com/users/XXXXXXXXXXXXXXXXXXXXXXXXX/instagram/XXXX/token.js"></script>
var InstagramToken = 'TOKENXXXXXXXXXX';
Then on the page, we can include this JS: See example of <script src='https://(your-token-app-name).herokuapp.com/token.js'></script>
<script src='https://(your-token-app-name).herokuapp.com/token.js'></script>
And the variable is set directly without needing to do a ajax request: <script>alert(InstagramToken);</script>
<script>alert(InstagramToken);</script>
The text was updated successfully, but these errors were encountered:
I have updated the API to handle this. As requested the response sets a variable called InstagramToken to the value of the current Access Token.
InstagramToken
The end point to use in your script tag is in the format of:
https://ig.instant-tokens.com/users/{userId}/instagram/{instagramUserId}/token.js?userSecret={userSecret}
I'll update the wiki and site in the next week or so.
Sorry, something went wrong.
The site has no been updated to display this information
codingbadger
No branches or pull requests
Hey, awesome service. Question: could the response be modified to return a javascript file that sets the token?
So for instance:
<script src="https://ig.instant-tokens.com/users/XXXXXXXXXXXXXXXXXXXXXXXXX/instagram/XXXX/token.js"></script>
-> returns
var InstagramToken = 'TOKENXXXXXXXXXX';
Then on the page, we can include this JS:
See example of
<script src='https://(your-token-app-name).herokuapp.com/token.js'></script>
And the variable is set directly without needing to do a ajax request:
<script>alert(InstagramToken);</script>
The text was updated successfully, but these errors were encountered: