The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vB5 API from Python Script Issues
Hi Guys,
I am writing to create new topic and user from python script. I am able to get the user and topic info using API's but I am facing issue with POST API namely "user.save"(INSERT or UPDATE user). The error which I am getting is "[["fieldmissing_email"]]" and my parameters looks like {"userid": 0, "password": "test123","user[]":[{"username": "test", "email":"test.test@test.com"}], "options[]": [ {"showAvatar": 1}], "adminoptions[]": [{"canviewmembers":True}], "userfield[]":[{"showavatars": 1}], "notificationOptions[]": [], "hvinput[]": [], "extra[]": [] } I am not familiar with php so can anyone help me how to pass parameters to API's to get this task done. One example will do. Also, when I try to update title in node table from mysql, it is not reflected on forum. I have updated title,htmltitle, description in node table and also rawtext in text table but still no success. |
#2
|
||||
|
||||
Quote:
EDIT:I ran your JSON through a validator and it failed. "canviewmembers":True should probably be "canviewmembers": 1. I didn't test it but invalid JSON will cause errors. Changing title and htmltitle should do the trick. Try clearing the system cache after you change the titles. Also, you need to empty your browser cache in some instances to see the changes. |
Благодарность от: | ||
MarkFL |
#3
|
|||
|
|||
Thanks Mel
It worked! |
#5
|
||||
|
||||
If removing the dot in the email address worked then there is a problem with email validation in vB as dots in email is valid.
|
#6
|
||||
|
||||
I think it was the invalid JSON. I guess we'll never know unless the OP comes back and tells us what worked. I don't think there's anything wrong with the email validation.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|