C# 클래스 CallfireApiClient.Api.Numbers.NumberLeasesApi

파일 보기 프로젝트 열기: CallFire/callfire-api-client-csharp

공개 메소드들

메소드 설명
Find ( FindNumberLeasesRequest request ) : Page

Find number leases by prefix, zipcode, etc... This API is useful for finding all numbers currently owned by an account.

FindConfigs ( FindNumberLeaseConfigsRequest request ) : Page

Find all number lease configs for the user.

Get ( string number, string fields = null ) : NumberLease

Get number lease by number

GetConfig ( string number, string fields = null ) : NumberConfig

Get number lease config

Update ( NumberLease lease ) : void

Update number lease

UpdateConfig ( NumberConfig config ) : void

Update number lease config

비공개 메소드들

메소드 설명
NumberLeasesApi ( RestApiClient client ) : System

메소드 상세

Find() 공개 메소드

Find number leases by prefix, zipcode, etc... This API is useful for finding all numbers currently owned by an account.
in case HTTP response code is 400 - Bad request, the request was formatted improperly. in case HTTP response code is 401 - Unauthorized, API Key missing or invalid. in case HTTP response code is 403 - Forbidden, insufficient permissions. in case HTTP response code is 404 - NOT FOUND, the resource requested does not exist. in case HTTP response code is 500 - Internal Server Error. in case HTTP response code is something different from codes listed above. in case error has occurred in client.
public Find ( FindNumberLeasesRequest request ) : Page
request CallfireApiClient.Api.Numbers.Model.Request.FindNumberLeasesRequest request object with different fields to filter
리턴 Page

FindConfigs() 공개 메소드

Find all number lease configs for the user.
in case HTTP response code is 400 - Bad request, the request was formatted improperly. in case HTTP response code is 401 - Unauthorized, API Key missing or invalid. in case HTTP response code is 403 - Forbidden, insufficient permissions. in case HTTP response code is 404 - NOT FOUND, the resource requested does not exist. in case HTTP response code is 500 - Internal Server Error. in case HTTP response code is something different from codes listed above. in case error has occurred in client.
public FindConfigs ( FindNumberLeaseConfigsRequest request ) : Page
request CallfireApiClient.Api.Numbers.Model.Request.FindNumberLeaseConfigsRequest request to filter
리턴 Page

Get() 공개 메소드

Get number lease by number
in case HTTP response code is 400 - Bad request, the request was formatted improperly. in case HTTP response code is 401 - Unauthorized, API Key missing or invalid. in case HTTP response code is 403 - Forbidden, insufficient permissions. in case HTTP response code is 404 - NOT FOUND, the resource requested does not exist. in case HTTP response code is 500 - Internal Server Error. in case HTTP response code is something different from codes listed above. in case error has occurred in client.
public Get ( string number, string fields = null ) : NumberLease
number string leased phone number
fields string Limit fields returned. Example fields=id,name
리턴 CallfireApiClient.Api.Numbers.Model.NumberLease

GetConfig() 공개 메소드

Get number lease config
in case HTTP response code is 400 - Bad request, the request was formatted improperly. in case HTTP response code is 401 - Unauthorized, API Key missing or invalid. in case HTTP response code is 403 - Forbidden, insufficient permissions. in case HTTP response code is 404 - NOT FOUND, the resource requested does not exist. in case HTTP response code is 500 - Internal Server Error. in case HTTP response code is something different from codes listed above. in case error has occurred in client.
public GetConfig ( string number, string fields = null ) : NumberConfig
number string leased phone number
fields string Limit fields returned. Example fields=id,name
리턴 CallfireApiClient.Api.Numbers.Model.NumberConfig

Update() 공개 메소드

Update number lease
in case HTTP response code is 400 - Bad request, the request was formatted improperly. in case HTTP response code is 401 - Unauthorized, API Key missing or invalid. in case HTTP response code is 403 - Forbidden, insufficient permissions. in case HTTP response code is 404 - NOT FOUND, the resource requested does not exist. in case HTTP response code is 500 - Internal Server Error. in case HTTP response code is something different from codes listed above. in case error has occurred in client.
public Update ( NumberLease lease ) : void
lease CallfireApiClient.Api.Numbers.Model.NumberLease lease to update
리턴 void

UpdateConfig() 공개 메소드

Update number lease config
in case HTTP response code is 400 - Bad request, the request was formatted improperly. in case HTTP response code is 401 - Unauthorized, API Key missing or invalid. in case HTTP response code is 403 - Forbidden, insufficient permissions. in case HTTP response code is 404 - NOT FOUND, the resource requested does not exist. in case HTTP response code is 500 - Internal Server Error. in case HTTP response code is something different from codes listed above. in case error has occurred in client.
public UpdateConfig ( NumberConfig config ) : void
config CallfireApiClient.Api.Numbers.Model.NumberConfig config to update
리턴 void