C# Class Utility.ApiCallComponent

Mostra file Open project: constantcontact/constantcontact-csharp-tutor

Public Methods

Method Description
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

Private Methods

Method Description
PrintRequestString ( WebRequest request, CredentialsDetails credentialsDetails, string postData ) : string

Creates the display string for the current http request

Method Details

CallServiceDelete() public static method

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
return string

CallServiceGet() public static method

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
return string

CallServicePost() public static method

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
return string

CallServicePut() public static method

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
return string