getUsers method

It is a method to get information about users linked to the partner.

This method works only for accounts that have a reseller status.

Principle of use

Syntax and URL to call the method
getUsers (datetime registered_after)
https://api.selzy.com/en/api/getUsers?format=json&api_key=KEY&registered_after=REGISTEREDAFTER&registered
_before=REGISTEREDBEFORE
Arguments
api_key * API access key.
registered_after Date and time after which the users were registered, in the "YYYY-MM-DD hh:mm" format.
registered_before Date and time before which the users were registered, in the "YYYY-MM-DD hh:mm" format.
Return value
JSON array, each array element is an object with fields similar to those returned by the getUserInfo. Example of the return value:

{
  "result":[
    {
        "login":"test_user_login",
        "email":"test@test.com",
        "firstname":"test name",
        "middlename":"test name",
        "lastname":"test name",
        "reg_time":"2011-09-05 10:00:00",
        "phone":"+70000000000",
        "company":"test company",
        "channel":"test channel",
        "timezone":"Europe/Moscow",
        "master":"test_main_login",
        "balance":18.52,
        "balance_bonus":0,
        "currency":"USD",
        "emails_paid":0,
        "emails_used":40734,
        "period_emails_paid":1000,
        "period_emails_used":0,
        "email_period_start":"2011-01-03 00:46:02",
        "email_period_end":"2011-02-03 00:46:02",
        "tariff_id":1,
        "next_tariff_id":10,
        "services": [{id:234, tariff:"bitrix24_premium_3m", paidUntil:"2017-04-28 10:51:33"}], 
        "is_active":1,
        "reg_ref":"https://www.facebook.com/",
        "reg_url":""https://selzy.test.com/en/v5/two_step_register",
        "api_mode":"on",
        "subscribers_total": 500,
        "subscribers_used": 129 
   } 
  ] 
}

Did we answer to your question?

0
0