The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Mobile API - login ok but no other action possible
Hi,
I'm trying to authenticate and get buddies using vbulletin mobile API. First, I'm calling api_init and I'm storing: - apiaccesstoken - apiclientid - secret - apiversion Next - login_login request. Response for this request is successfull: Code:
{"session":{"dbsessionhash":"9d55acf45237f22f340c46b91b183772","userid":"0"},"response":{"errormessage":["strikes","http:\/\/forum.xxxxxx.com","api=1&"]}} Code:
"{\"response\":{\"errormessage\":[\"nopermission_loggedout\"]}}" Here: https://www.vbulletin.com/forum/cont...ess-Mobile-API is some explanation: Quote:
thanks for any help! |
#2
|
|||
|
|||
I assume you didn't call the login()-method properly. Your api-init is probably correct otherwise you weren't able to call any other api methods.
What is your repsone of the login()-method? It should contains something like this: PHP Code:
PHP Code:
Quote:
Just calling api_init, extracting the vars for being able to create the signature etc., call login and then call any further method. You will be logged in until you call logout. There is no need to use the db_sessionhash from the login response, or manually call api_getsecuritytoken. If I do that, I will get only "invalid access token" error messages. Hope this helps. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|