C# 클래스 gdapi.Client

Represents the Client which handles all communication to the API.
파일 보기 프로젝트 열기: godaddy/gdapi-csharp 1 사용 예제들

공개 메소드들

메소드 설명
Client ( string base_url, string access_key, string secret_key ) : System.Collections.Generic

Creates a new Client.

create ( string collectionType, Resource resource ) : Resource

Creates a new Resource.

delete ( string collectionType, Resource resource ) : Resource

Deletes a Resource

doAction ( string actionUrl ) : Resource

Performs an action from a Resource and returns the resulting Resource.

doAction ( string actionUrl, Resource inputResource ) : Resource

Performs an action from an action url and an input resource and returns the resulting Resource

fetchLinkAsCollection ( Resource resource, string linkName ) : Collection

Fetches a link from the API as a Collection.

fetchLinkAsResource ( Resource resource, string linkName ) : Resource

Fetches a link from the API as a Resource.

getBaseUrl ( ) : string

Gets the base url of the Client

getCollection ( string resourceType ) : Collection

Returns an unfiltered Collection from the API

getCollection ( string resourceType, CollectionFilter collectionFilter ) : Collection

Returns a filtered Collection from the API

getNetworkCredential ( ) : NetworkCredential

Returns the current NetworkCredentials used by the Client

getResourceById ( string collectionType, string resourceId ) : Resource

Returns a Resource by an id.

save ( string collectionType, Resource resource ) : Resource

Saves a Resource

비공개 메소드들

메소드 설명
getCollectionByRequest ( gdapi webRequest ) : Collection

Returns a Collection from a WebRequest.

getResourceByRequest ( gdapi webRequest ) : Resource

Returns a Resource from a WebRequest

메소드 상세

Client() 공개 메소드

Creates a new Client.
public Client ( string base_url, string access_key, string secret_key ) : System.Collections.Generic
base_url string Base Url of the API
access_key string Access Key to the API
secret_key string Secret Key to the API
리턴 System.Collections.Generic

create() 공개 메소드

Creates a new Resource.
public create ( string collectionType, Resource resource ) : Resource
collectionType string Collection type to add the resource to
resource Resource Resource to add to the Collection
리턴 Resource

delete() 공개 메소드

Deletes a Resource
public delete ( string collectionType, Resource resource ) : Resource
collectionType string Collection type to delete the resource from
resource Resource Resource to delete
리턴 Resource

doAction() 공개 메소드

Performs an action from a Resource and returns the resulting Resource.
public doAction ( string actionUrl ) : Resource
actionUrl string Action URL to perform.
리턴 Resource

doAction() 공개 메소드

Performs an action from an action url and an input resource and returns the resulting Resource
public doAction ( string actionUrl, Resource inputResource ) : Resource
actionUrl string Action URL to perform.
inputResource Resource Input Resource to use send with the action URL.
리턴 Resource

fetchLinkAsCollection() 공개 메소드

Fetches a link from the API as a Collection.
public fetchLinkAsCollection ( Resource resource, string linkName ) : Collection
resource Resource Resource object which contains links.
linkName string Link name to return.
리턴 Collection

fetchLinkAsResource() 공개 메소드

Fetches a link from the API as a Resource.
public fetchLinkAsResource ( Resource resource, string linkName ) : Resource
resource Resource Resource object which contains links.
linkName string Link name to return.
리턴 Resource

getBaseUrl() 공개 메소드

Gets the base url of the Client
public getBaseUrl ( ) : string
리턴 string

getCollection() 공개 메소드

Returns an unfiltered Collection from the API
public getCollection ( string resourceType ) : Collection
resourceType string Type of the Collection to return.
리턴 Collection

getCollection() 공개 메소드

Returns a filtered Collection from the API
public getCollection ( string resourceType, CollectionFilter collectionFilter ) : Collection
resourceType string Type of the Collection to return.
collectionFilter CollectionFilter
리턴 Collection

getNetworkCredential() 공개 메소드

Returns the current NetworkCredentials used by the Client
public getNetworkCredential ( ) : NetworkCredential
리턴 System.Net.NetworkCredential

getResourceById() 공개 메소드

Returns a Resource by an id.
public getResourceById ( string collectionType, string resourceId ) : Resource
collectionType string Collection to pull the Resource from
resourceId string Id of the Resource to pull
리턴 Resource

save() 공개 메소드

Saves a Resource
public save ( string collectionType, Resource resource ) : Resource
collectionType string Collection type to save the resource to
resource Resource Resource to save
리턴 Resource