API:API Affiliate Users(Legacy)

From HasOffers

Contents

Definition:

Returns a list of affiliate_users.


Required Parameters:


Optional Parameters:

  • limit

The maximum number of results that should be returned. 0 is unlimited results. Default is 0. Example: http://demo.hasoffers.com/admin/api/v1/affiliate_users.json?api_key=NEThSQ1Ah92G8f7JYqQuO5hnsULkia&limit=50

  • page

The page number of the result set to coincide with the provided limit. Default is 1. Example: http://demo.hasoffers.com/admin/api/v1/affiliate_users.json?api_key=NEThSQ1Ah92G8f7JYqQuO5hnsULkia&limit=10&page=2



JSON Example

.


      {
          "success":true
          ,"rows":2
          ,"total_rows":18
          ,"data":{
              "affiliate_users":[
                  {
                      "id":"1"
                      ,"affiliate_id":"1"
                      ,"email":"demo@hasoffers.com"
                      ,"first_name":"Demo"
                      ,"last_name":"Account"
                      ,"home_phone":""
                      ,"cell_phone":""
                      ,"title":""
                      ,"join_date":"2009-04-16 13:55:56"
                      ,"last_login":"2009-07-01 21:18:52"
                      ,"status":"active"
                  }
                  ,{
                      "id":"2"
                      ,"affiliate_id":"2"
                      ,"email":"john.doe@hasoffers.com"
                      ,"first_name":"John"
                      ,"last_name":"Doe"
                      ,"home_phone":""
                      ,"cell_phone":""
                      ,"title":"COO"
                      ,"join_date":"2009-04-16 14:47:01"
                      ,"last_login":"2009-04-16 15:47:57"
                      ,"status":"active"
                  }
              ]
          }
      }

XML Example

Note: Remove ! from code before using.

     <rsp stat="ok" rows="2" total_rows="18">
         <affiliate_user>
             <id>1</id>
             <affiliate_id>1</affiliate_id>
             <!email>demo@hasoffers.com<!/email>
             <first_name>Demo</first_name>
             <last_name>Account</last_name>
             <home_phone/>
             <cell_phone/>
             <title/>
             <join_date>2009-04-16 13:55:56</join_date>
             <last_login>2009-07-01 21:18:52</last_login>
             <status>active</status>
         </affiliate_user>
         <affiliate_user>
             <id>2</id>
             <affiliate_id>2</affiliate_id>
             <!email>john.doe@hasoffers.com<!/email>
             <first_name>John</first_name>
             <last_name>Doe</last_name>
             <home_phone/>
             <cell_phone/>
             <title>COO</title>
             <join_date>2009-04-16 14:47:01</join_date>
             <last_login>2009-04-16 15:47:57</last_login>
             <status>active</status>
         </affiliate_user>
     </rsp>

 
Email this page to a friend or co-worker