sairampola6 on "[Plugin: JSON API User] usr registration"

تعرفه تبلیغات در سایت
عنوان عکس
عنوان عکس
عنوان عکس
عنوان عکس
عنوان عکس

جستجوگر

یافته ها در جستجو

    امکانات وب

    پر مخاطب ها

    آرشیو مطالب

    برچسب ها

    deepak10011991
    Member
    Posted 11 months ago #

    can u tell me all fiow of new user egistration

    https://wordpress.org/plugins/json-api-user/

    deepak10011991
    Member
    Posted 11 months ago #

    i will try this url
    http://localhost/wordpress/api/user/register/?username=john&email=john@domain.com&nonce=8bdfeb4e16&display_name=John

    but user can't register and error will be show {"status":"error","error":"Unknown controller 'user'."}

    Hi Deepak,

    if you are getting this error > Unknown controller 'user'

    It clearly means that JSON API User contrtoller is not activated yet. Make sure you have installed JSON API User plugin and activated via Settings > JSON API page.

    I'm getting the same reponse on a clean install, i can take a picture if you would like its installed and activated.....

    Hi,

    I have just tested it again, installed the latest version from here and it worked without any issues..

    http://localhost/api/user/register/

    got this response >>

    {"status":"error","error":"You must include 'username' var in your request. "}

    Make sure, you have php 5.3+ version, 'JSON API' plugin installed and User Controller activated from Settings > JSON API

    5.2.4 or greater is btw WordPress requirement:

    https://wordpress.org/about/requirements/

    To run WordPress your host just needs a couple of things:

    PHP version 5.2.4 or greater (recommended: PHP 5.4 or greater)

    Hi,

    I have installed the plugin as mentioned in the installation process. But, when I try to register a new user it shows the following error.

    "{"status":"error","error":"Invalid access, unverifiable 'nonce' value. Use the 'get_nonce' Core API method. "}"

    Please suggest how to register a user through REST API.

    nonce can be created by calling if you are registering user. http://localhost/api/get_nonce/?controller=user&method=register

    You can then use 'nonce' value to register user like this:

    http://localhost/api/user/register/?username=john&email=john@domain.com&nonce=8bdfeb4e16&display_name=John

    Thanks Ali for your quick reply and it worked.

    paulvaskar
    Member
    Posted 8 months ago #

    my server's php version is 5.6.12. I have installed plugins "JSON API" as well as "JSON API User" and activated both. Also I could get the nonce using the url http://mydomain/test/api/get_nonce/?controller=user&method=register.

    I tried to register with the following url according to your suggestion
    http://mydomain/test/api/User/register/?username=john&email=john@domain.com&nonce=a1c34ed402&display_name=John

    But when I am getting the following error
    "{
    "status": "error",
    "error": "Unknown controller 'user'."
    }"
    please let me know what should I do to get it work properly.

    Thanks in advance
    Vaskar

    try this: http://mydomain/test/api/user/register/?username=john&email=john@domain.com&nonce=a1c34ed402&display_name=John

    You are using 'User' not user in url.

    paulvaskar
    Member
    Posted 8 months ago #

    Hello Ali,

    Thanks a lot for your reply.

    I tried with both small and capital 'U', but still facing the same issue. and getting the error
    {"status":"error","error":"Unknown controller 'user'."}

    Please guide me how to resolve the issue.

    Thanks in advance
    Vaskar

    are the other JSON API controllers working? like respond? widgets? posts?

    paulvaskar
    Member
    Posted 8 months ago #

    Hello ALi,

    Thanks a lot for your reply. It worked for me. Now my question is how can I update user using your API. Please give me the url for updating user.

    Thanks and Regards
    Vaskar

    Method: update_user_meta
    It needs 'cookie' and 'meta_key' var and 'meta_value' to update. You may send multiple values separated by comma.

    http://localhost/api/user/update_user_meta/?cookie=COOKIE-HERE&meta_key=KEY-HERE&meta_value=VALUE-HERE

    http://localhost/api/user/update_user_meta/?cookie=COOKIE-HERE&&meta_key=KEY-HERE&meta_value=value1,value2,value3

    Method: update_user_meta_vars
    It needs 'cookie' and any user meta variables. This endpoint allows you cut http requests if you have to add/update more than one user_meta field at a time.

    http://localhost/api/user/update_user_meta_vars/?cookie=COOKIE-HERE&website=user-website.com&city=Chicago&country=USA&skills=php,css,js,web design

    in the above call, website, city, country and skills are meta_key for WordPress user_meta. It is different from BuddyPress xProfile fields.

    Please make sure you provide ending comma for all those fields which have multiple values. e.g. If 'skills' field has multiple values, pass them like http://localhost/api/user/update_user_meta_vars/?cookie=COOKIE-HERE&skills=PHP,MySQL, or &skills=PHP, make sure you always pass ending comma for multi-select fields to be added in array format.

    Please see Notes for all documentation here https://wordpress.org/plugins/json-api-user/other_notes/

    samkat4u
    Member
    Posted 4 months ago #

    Hi,
    When i am trying http://localhost/wp-sam/api/get_nonce/?controller=user&method=register, the page is directly navigating to xampp's home page.

    Thanks,
    samkat

    make sure that User controller is enabled in Settings > JSON API

    samkat4u
    Member
    Posted 4 months ago #

    Hi Ali,
    Thanks for the reply, It is activated, still having the same issue.

    Thanks,
    samkat

    then it's your local xampp issue. Also make sure you have enabled permalinks.

    samkat4u
    Member
    Posted 4 months ago #

    Yes. Done it... working fine now. :)

    Thanks for the help Ali

    sairampola6
    Member
    Posted 15 minutes ago #

    Hi Ali,

    user_pass is not working , i included user_pass in the url but still i am getting an email with link to set password. Pls help me sir

    thank you,
    sairam pola

    نویسنده : استخدام کار بازدید : 457 تاريخ : شنبه 8 خرداد 1395 ساعت: 13:19
    برچسب‌ها :
    اخبار و رسانه هاهنر و ادبیاترایانه و اینترنتعلم و فن آوریتجارت و اقتصاداندیشه و مذهبفوتو بلاگوبلاگ و وبلاگ نویسیفرهنگ و تاریخجامعه و سیاستورزشسرگرمی و طنزشخصیخانواده و زندگیسفر و توریسمفارسی زبان در دیگر کشورها