Adding products to user via REST API - but don't know user_id?

Discussion in 'Customization & add-ons' started by frybread, Mar 30, 2015.

  1. frybread

    frybread aMember Pro Customer

    Joined:
    Jul 14, 2008
    Messages:
    43
    I'm not a coder and need some help.

    I'm trying to add subscriptions to certain users via REST API using a PHP script. My issue is that I don't know the user's "user_id" - but I do know the login name.

    http://www.example.com/amember/api/users?_key=xxxx&_filter[login]=test

    I can see the user_id here, but how do I pass this on as a variable in my PHP script?

Share This Page