All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| CreateCustomer | POST /api/v1.0/{appId}/customers | |
| GetCustomerById | GET /api/v1.0/{appId}/customers/{customerId} | |
| GetCustomers | GET /api/v1.0/{appId}/customers | |
| UpdateCustomerById | POST /api/v1.0/{appId}/customers/{customerId} |
RestApiResultCustomer CreateCustomer (string appId, CustomerCreateModel customerCreateModel)
using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;
namespace Example
{
public class CreateCustomerExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CustomersApi();
var appId = appId_example; // string |
var customerCreateModel = new CustomerCreateModel(); // CustomerCreateModel |
try
{
RestApiResultCustomer result = apiInstance.CreateCustomer(appId, customerCreateModel);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CustomersApi.CreateCustomer: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| appId | string | ||
| customerCreateModel | CustomerCreateModel |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RestApiResultCustomer GetCustomerById (string appId, int? customerId)
using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;
namespace Example
{
public class GetCustomerByIdExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CustomersApi();
var appId = appId_example; // string |
var customerId = 56; // int? |
try
{
RestApiResultCustomer result = apiInstance.GetCustomerById(appId, customerId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CustomersApi.GetCustomerById: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| appId | string | ||
| customerId | int? |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RestApiResultCustomers GetCustomers (string appId, string phoneNumber)
using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;
namespace Example
{
public class GetCustomersExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CustomersApi();
var appId = appId_example; // string |
var phoneNumber = phoneNumber_example; // string |
try
{
RestApiResultCustomers result = apiInstance.GetCustomers(appId, phoneNumber);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CustomersApi.GetCustomers: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| appId | string | ||
| phoneNumber | string |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RestApiResultCustomer UpdateCustomerById (string appId, int? customerId, CustomerUpdateModel updateCustomer)
using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;
namespace Example
{
public class UpdateCustomerByIdExample
{
public void main()
{
// Configure OAuth2 access token for authorization: oauth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CustomersApi();
var appId = appId_example; // string |
var customerId = 56; // int? |
var updateCustomer = new CustomerUpdateModel(); // CustomerUpdateModel |
try
{
RestApiResultCustomer result = apiInstance.UpdateCustomerById(appId, customerId, updateCustomer);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CustomersApi.UpdateCustomerById: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| appId | string | ||
| customerId | int? | ||
| updateCustomer | CustomerUpdateModel |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]