Using Valency API in content page

Options
I am trying to add a module of html page in Table of Content. I want to add a button in the page which uses valency API.  I am not sure how to accomplish this because I am struggling getting OAUTH token. I setup OAUTH application in setting. When I click the button in the page I made, it you redirect to oauth page and then I setup redirect_url in the same page in the module in Table of Content which is malfunctioning. I don't think it's a right approach to do use valency API. Any good idea or suggestion?
Tagged:

Answers