C# Class MailChimp.Api.Net.Services.Authenticate

Show file Open project: shahriarhossain/MailChimp.Api.Net

Public Methods

Method Description
ClientAuthentication ( HttpClient client ) : void

Return the endpoint to caller method Expects id for particular list/campaign etc

EndPoint ( TargetTypes type, SubTargetType subType, SubTargetType childSubType, string id = "", string param2 = "" ) : string

Return the endpoint to caller method v3.0 Mailchimp EndPoint targetType, example: reports, lists etc Expects id for particular list/campaign etc Expects id for particular list/campaign etc NOT IMPLEMENTED YET

FeatchApiKey ( ) : string

Retrieve the API key from App.Config and check if its valid

LegacyEndPoint ( TargetTypes type, SubTargetType subType ) : string

Return the endpoint to caller method v2.0 Mailchimp EndPoint targetType, example: campaign, lists etc

Private Methods

Method Description
GetDatacenterPrefix ( ) : string

Get the datacenter prefix based on the API key passed

Method Details

ClientAuthentication() public static method

Return the endpoint to caller method Expects id for particular list/campaign etc
public static ClientAuthentication ( HttpClient client ) : void
client System.Net.Http.HttpClient
return void

EndPoint() public static method

Return the endpoint to caller method v3.0 Mailchimp EndPoint targetType, example: reports, lists etc Expects id for particular list/campaign etc Expects id for particular list/campaign etc NOT IMPLEMENTED YET
public static EndPoint ( TargetTypes type, SubTargetType subType, SubTargetType childSubType, string id = "", string param2 = "" ) : string
type TargetTypes
subType SubTargetType
childSubType SubTargetType
id string
param2 string
return string

FeatchApiKey() public static method

Retrieve the API key from App.Config and check if its valid
public static FeatchApiKey ( ) : string
return string

LegacyEndPoint() public static method

Return the endpoint to caller method v2.0 Mailchimp EndPoint targetType, example: campaign, lists etc
public static LegacyEndPoint ( TargetTypes type, SubTargetType subType ) : string
type TargetTypes
subType SubTargetType
return string