Skip to content

Latest commit

 

History

History
271 lines (208 loc) · 7.94 KB

ResellerAccountApi.md

File metadata and controls

271 lines (208 loc) · 7.94 KB

IO.ClickSend.ClickSend.Api.ResellerAccountApi

All URIs are relative to https://rest.clicksend.com/v3

Method HTTP request Description
ResellerAccountsByClientUserIdGet GET /reseller/accounts/{client_user_id} Get Reseller clients Account
ResellerAccountsByClientUserIdPut PUT /reseller/accounts/{client_user_id} Update Reseller clients Account
ResellerAccountsGet GET /reseller/accounts Get list of reseller accounts
ResellerAccountsPost POST /reseller/accounts Create reseller account

ResellerAccountsByClientUserIdGet

string ResellerAccountsByClientUserIdGet (int? clientUserId)

Get Reseller clients Account

Get Reseller clients Account

Example

using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;

namespace Example
{
    public class ResellerAccountsByClientUserIdGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new ResellerAccountApi();
            var clientUserId = 56;  // int? | User ID of client

            try
            {
                // Get Reseller clients Account
                string result = apiInstance.ResellerAccountsByClientUserIdGet(clientUserId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ResellerAccountApi.ResellerAccountsByClientUserIdGet: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
clientUserId int? User ID of client

Return type

string

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ResellerAccountsByClientUserIdPut

string ResellerAccountsByClientUserIdPut (ResellerAccount body, int? clientUserId)

Update Reseller clients Account

Update Reseller clients Account

Example

using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;

namespace Example
{
    public class ResellerAccountsByClientUserIdPutExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new ResellerAccountApi();
            var body = new ResellerAccount(); // ResellerAccount | ResellerAccount model
            var clientUserId = 56;  // int? | User ID of client

            try
            {
                // Update Reseller clients Account
                string result = apiInstance.ResellerAccountsByClientUserIdPut(body, clientUserId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ResellerAccountApi.ResellerAccountsByClientUserIdPut: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
body ResellerAccount ResellerAccount model
clientUserId int? User ID of client

Return type

string

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ResellerAccountsGet

string ResellerAccountsGet (int? page = null, int? limit = null)

Get list of reseller accounts

Get list of reseller accounts

Example

using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;

namespace Example
{
    public class ResellerAccountsGetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new ResellerAccountApi();
            var page = 56;  // int? | Page number (optional)  (default to 1)
            var limit = 56;  // int? | Number of records per page (optional)  (default to 10)

            try
            {
                // Get list of reseller accounts
                string result = apiInstance.ResellerAccountsGet(page, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ResellerAccountApi.ResellerAccountsGet: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
page int? Page number [optional] [default to 1]
limit int? Number of records per page [optional] [default to 10]

Return type

string

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ResellerAccountsPost

string ResellerAccountsPost (ResellerAccount body)

Create reseller account

Create reseller account

Example

using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;

namespace Example
{
    public class ResellerAccountsPostExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new ResellerAccountApi();
            var body = new ResellerAccount(); // ResellerAccount | ResellerAccount model

            try
            {
                // Create reseller account
                string result = apiInstance.ResellerAccountsPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ResellerAccountApi.ResellerAccountsPost: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
body ResellerAccount ResellerAccount model

Return type

string

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]