• Resolved agencewebbretagne

    (@agencewebbretagne)


    Hi,

    Thanks for your great extension. Is it possible to update any User Meta with admin cookie ?
    I have a smartphone app and i had to update my customers meta (adress…) but i don’t know customer password to generate cookie… So i want to update any meta user with an admin account How can i do this ? possible ?

    Thanks
    Best regards

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Ali Qureshi

    (@parorrey)

    Hi,

    There is one endpoint ‘update_user_meta_admin’ available in User Plus https://www.parorrey.com/solutions/json-api-user-plus/ version that you can use for this.

    Thanks

    Thread Starter agencewebbretagne

    (@agencewebbretagne)

    Hi,

    Ok i get your premium extension User Plus but it’s the same situation, i need to generate cookie for one user if i want to manipulate his meta user data and my smartphone app can’t get his password. I nedd to manipulate meta user data for every user with one account (admin account for example)
    A cookie to rule all user account !
    You have an example to do that ?

    Thanks

    Plugin Author Ali Qureshi

    (@parorrey)

    Hi,

    Yes, you can do that with ‘update_user_meta_admin’ endpoint.

    I have sent you example in email. Please check and confirm in email.

    Thanks

    Thread Starter agencewebbretagne

    (@agencewebbretagne)

    Hi,

    Ok thanks but no email receved yet….

    Thanks

    Thread Starter agencewebbretagne

    (@agencewebbretagne)

    Hi,

    Ok thanks update is now ok. Now how to get user meta (for any user) with one cookie admin ?

    Thanks again…

    Plugin Author Ali Qureshi

    (@parorrey)

    you can use ‘get_user_meta_id’. you need key, secret and user_id. admin cookie is not required.

    Plugin Author Ali Qureshi

    (@parorrey)

    And for any specific meta_key:

    /get_user_meta_id/?key=KEY-here&user_id=ID-here&secret=SECRET-here&meta_key=KEY-here

    Thread Starter agencewebbretagne

    (@agencewebbretagne)

    Hi,

    Ok perfect ! many thanks.
    A last question, is it possible to delete a user with admin acces ?

    Thanks again
    Jerome

    Plugin Author Ali Qureshi

    (@parorrey)

    Yes, you can use delete_account. It requires that BuddyPress to be installed.

    I will add a new endpoint to delete_user

    Thread Starter agencewebbretagne

    (@agencewebbretagne)

    Hi Ali,

    Thanks for your answer. We don’t need BuddyPress an it’s too much install it just to have delete_account endpoint… If you make a new endpoint to delete user it will be better for us. Tell us when this endpoint is ok !

    Many thanks

    Jerome

    Plugin Author Ali Qureshi

    (@parorrey)

    I will send you email in a day, with new endpoint.

    Thanks

    Thread Starter agencewebbretagne

    (@agencewebbretagne)

    Hi,

    Many thanks for your mail we test that !

    Best regards
    Jerome

    Thread Starter agencewebbretagne

    (@agencewebbretagne)

    Hi

    have you add the new endpoints to delete_user ?

    A other question : is-it possible to upload a pdf file in the new_post method (with attachement parameter) ?
    No restriction or security rules ?
    have you a example to do that ?

    Thank you for your response ?

    Have a good day

    Franck

    Plugin Author Ali Qureshi

    (@parorrey)

    Yes,I already added and sent you updated plugin in email few days back.

    Pdf attachment is not possible with new post at this time.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Update user meta’ is closed to new replies.