Skip to content

Latest commit

 

History

History
83 lines (60 loc) · 2.17 KB

SubscriptionPlansApi.md

File metadata and controls

83 lines (60 loc) · 2.17 KB

PollinationSDK.Api.SubscriptionPlansApi

All URIs are relative to http://localhost

Method HTTP request Description
ListSubscriptionPlans GET /subscription-plans/ List Subscription Plans

ListSubscriptionPlans

List<SubscriptionPlan> ListSubscriptionPlans (PlanType? planType = null)

List Subscription Plans

Example

using System.Collections.Generic;
using System.Diagnostics;
using PollinationSDK.Api;
using PollinationSDK.Client;
using PollinationSDK.Model;

namespace Example
{
    public class ListSubscriptionPlansExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new SubscriptionPlansApi(Configuration.Default);
            var planType = ;  // PlanType? | Plan Type (optional) 

            try
            {
                // List Subscription Plans
                List<SubscriptionPlan> result = apiInstance.ListSubscriptionPlans(planType);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling SubscriptionPlansApi.ListSubscriptionPlans: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
planType PlanType? Plan Type [optional]

Return type

List<SubscriptionPlan>

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

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