C# Класс Utility.ApiCallComponent

Показать файл Открыть проект

Открытые методы

Метод Описание
CallServiceDelete ( CredentialsDetails credentialsDetails, string contactURI, string &strRequest, string &strResponse ) : string

Method used for making an http DELETE call

CallServiceGet ( CredentialsDetails credentialsDetails, string contactURI, string &strRequest, string &strResponse ) : string

Method used for making an http GET call

CallServicePost ( CredentialsDetails credentialsDetails, string contactURI, string data, string &strRequest, string &strResponse ) : string

Method used for making an http POST call

CallServicePut ( CredentialsDetails credentialsDetails, string contactURI, string data, string &strRequest, string &strResponse ) : string

Method used for making an http PUT call

Приватные методы

Метод Описание
PrintRequestString ( WebRequest request, CredentialsDetails credentialsDetails, string postData ) : string

Creates the display string for the current http request

Описание методов

CallServiceDelete() публичный статический Метод

Method used for making an http DELETE call
public static CallServiceDelete ( CredentialsDetails credentialsDetails, string contactURI, string &strRequest, string &strResponse ) : string
credentialsDetails BusinessObjects.CredentialsDetails An object that encapsulates the Constant Contact credentials
contactURI string The URL for the call
strRequest string The request string representation
strResponse string The response string representation
Результат string

CallServiceGet() публичный статический Метод

Method used for making an http GET call
public static CallServiceGet ( CredentialsDetails credentialsDetails, string contactURI, string &strRequest, string &strResponse ) : string
credentialsDetails BusinessObjects.CredentialsDetails An object that encapsulates the Constant Contact credentials
contactURI string The URL for the call
strRequest string The request string representation
strResponse string The response string representation
Результат string

CallServicePost() публичный статический Метод

Method used for making an http POST call
public static CallServicePost ( CredentialsDetails credentialsDetails, string contactURI, string data, string &strRequest, string &strResponse ) : string
credentialsDetails BusinessObjects.CredentialsDetails An object that encapsulates the Constant Contact credentials
contactURI string The URL for the call
data string The post data string representation
strRequest string The request string representation
strResponse string The response string representation
Результат string

CallServicePut() публичный статический Метод

Method used for making an http PUT call
public static CallServicePut ( CredentialsDetails credentialsDetails, string contactURI, string data, string &strRequest, string &strResponse ) : string
credentialsDetails BusinessObjects.CredentialsDetails An object that encapsulates the Constant Contact credentials
contactURI string The URL for the call
data string The put data string representation
strRequest string The request string representation
strResponse string The response string representation
Результат string