AT&T API Platform SDK for Microsoft®  2.3.3
Wrapper classes that allow developers to build robust applications using .NET
 All Classes Namespaces Functions Enumerations Properties
About the Cookbooks

Overview

The Platform SDK for Microsoft contains a RequestFactory class that provides methods for the AT&T Platform services. Apps create an instance of RequestFactory using parameters that identify both the application and the services the application uses. To use these methods in an application, perform the following steps:

  1. Add a reference to the SDK
  2. Create an instance of RequestFactory

The following section explains these steps in more detail.

Step 1. Add a reference to the SDK

Add a reference to ATT_MSSDK.dll to the project, and import the ATT_MSSDK namespace.

 using ATT_MSSDK;

Step 2. Create an instance of RequestFactory

To create an instance of the RequestFactory class that identifies your application and provides access to the services your application uses, pass the API Key and Secret Key values that were assigned to your application when you registered it with AT&T and pass the appropriate scope value. For example, for SMS use RequestFactory.ScopeTypes.SMS as shown in the following code snippet.

 string endPoint = "xxxxxx.xxxxx.xxx";
 string apiKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";  // APPLICATION key of the application as registered at developer portal.
 string secretKey = "xxxxxxxxxxxxxxxx";  //Secret Key of the application as registered at developer portal.
 string redirectURI = "xxxxxx.xxxxxxxx.xxx";
 List<RequestFactory.ScopeTypes> scopes = new List<RequestFactory.ScopeTypes>();
 scopes.Add(RequestFactory.ScopeTypes.CallControl);
 RequestFactory requestFactory = new RequestFactory(endPoint, apiKey, secretKey, scopes, redirectURI, null);