/// <summary> /// Initializes a new Connector factory with the specified credentials. /// </summary> /// <param name="subDomain">The subdomain of the ad store account for whisch API requests will be made</param> /// <param name="apiKey">The api key with which the API requests will be authenticated</param> public ConnectorFactory(EndPoint adStoreApiEndPoint, EndPoint adServerApiEndPoint) : this() { AdStoreApiEndPoint = adStoreApiEndPoint; AdServerApiEndPoint = adServerApiEndPoint; }
/// <summary> /// Initializes a new Connector factory with the specified credentials. /// </summary> /// <param name="subDomain">The subdomain of the ad store account for which API requests will be made</param> /// <param name="apiKey">The api key with which the API requests will be authenticated</param> public ConnectorFactory(string subDomain, string apiKey) : this() { AdStoreApiEndPoint = new EndPoint(string.Format("https://{0}.trafficspaces.com", subDomain), subDomain, apiKey); AdServerApiEndPoint = new EndPoint("http://ads.trafficspaces.net"); }
/// <summary> /// Initializes a new client with the specified credentials. /// </summary> /// <param name="accountSid">The AccountSid to authenticate with</param> /// <param name="authTokens">The AuthToken to authenticate with</param> public PlacementConnector(EndPoint endPoint, string resourcePath) : base(endPoint, resourcePath) { }
/// <summary> /// Initializes a new Connector that is dedicated to User resources. /// </summary> protected Connector GetConnector(EndPoint endPoint, string resourcePath) { if (!connectors.ContainsKey(resourcePath)) { connectors[resourcePath] = new Connector(endPoint, resourcePath); } return connectors[resourcePath]; }
public TestHarness(EndPoint adStoreApiEndPoint, EndPoint adServerApiEndPoint) : this() { factory = new ConnectorFactory(adStoreApiEndPoint, adServerApiEndPoint); }