Skip to content

Latest commit

 

History

History
258 lines (190 loc) · 6.44 KB

File metadata and controls

258 lines (190 loc) · 6.44 KB

Flipdish.Api.FpmApi

All URIs are relative to https://api.flipdish.co

Method HTTP request Description
CreateFpmForStore POST /api/v1.0/{storeId}/fpm
DeleteFpmForStore DELETE /api/v1.0/{storeId}/fpm
EditFpmForStore POST /api/v1.0/{storeId}/fpm/edit
GetFpmForStore GET /api/v1.0/{storeId}/fpm

CreateFpmForStore

Object CreateFpmForStore (int? storeId, string phoneNumber)

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class CreateFpmForStoreExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new FpmApi();
            var storeId = 56;  // int? | 
            var phoneNumber = phoneNumber_example;  // string | 

            try
            {
                Object result = apiInstance.CreateFpmForStore(storeId, phoneNumber);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FpmApi.CreateFpmForStore: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
storeId int?
phoneNumber string

Return type

Object

Authorization

oauth2

HTTP request headers

  • 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]

DeleteFpmForStore

void DeleteFpmForStore (int? storeId)

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class DeleteFpmForStoreExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new FpmApi();
            var storeId = 56;  // int? | 

            try
            {
                apiInstance.DeleteFpmForStore(storeId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FpmApi.DeleteFpmForStore: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
storeId int?

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • 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]

EditFpmForStore

void EditFpmForStore (int? storeId, TelephonyConfig telephonyConfig)

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class EditFpmForStoreExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new FpmApi();
            var storeId = 56;  // int? | 
            var telephonyConfig = new TelephonyConfig(); // TelephonyConfig | 

            try
            {
                apiInstance.EditFpmForStore(storeId, telephonyConfig);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FpmApi.EditFpmForStore: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
storeId int?
telephonyConfig TelephonyConfig

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • 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]

GetFpmForStore

TelephonyConfig GetFpmForStore (int? storeId)

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class GetFpmForStoreExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new FpmApi();
            var storeId = 56;  // int? | 

            try
            {
                TelephonyConfig result = apiInstance.GetFpmForStore(storeId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FpmApi.GetFpmForStore: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
storeId int?

Return type

TelephonyConfig

Authorization

oauth2

HTTP request headers

  • 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]