-
Notifications
You must be signed in to change notification settings - Fork 14
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
Can't get account data :( #11
Comments
Hey @wpexplorer - thanks for testing out the plugin! This script hits https://account.envato.com/account/edit using cURL and the special "Envato Account Cookie". This basically logs you into Envato from the PHP script. This is nothing to do with the API. It pulls out the form fields on this account page to verify the username of the currently "logged in" user. (we need to do it this way so we can post comments, currently it's not possible to post comments through the API so we have to use this special cookie/curl script) If you would like to see what is happening you can edit the
and add some debugging to see what is going on:
Cheers. |
Should the Token be created with the main account or the "support" account used to answer comments? |
The token (ie logging into the API) should be created using the main
account. This lets support hub import all your item data and comments from
the API. The cookie should be copied from chrome when logged into the
"support" account (don't logout of the " support" account from chrome
either, leave that logged in). You could just use everything from the main
account as a test too.
…Sent from my phone
|
No matter what I do I keep getting the following error:
What I really don't understand is when looking at the code why are you going to https://account.envato.com/account/edit to pulling the value of the input fields? Not quite sure I understand why this is how you " confirm" the token...
Here is the access granted to the Token (is this correct):
Thanks!
The text was updated successfully, but these errors were encountered: