Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions DC/Csharp/app1/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
AT&T API Samples - DC app 1
------------------------------

This file describes how to set up, configure and run the C# Applications of the AT&T HTML5 Program sample applications.
This file describes how to set up, configure and run the C# Applications of the AT&T RESTFul sample applications.
It covers all steps required to register the application on DevConnect and, based on the generated API keys and secrets,
create and run one's own full-fledged sample applications.

Expand Down Expand Up @@ -36,21 +36,26 @@ NOTE: You MUST select Device capability in the list of services under field 'Ser
so these values in your application should be adjusted accordingly.

Depending on the kind of authentication used, an application may be based on either the Autonomous Client or the Web-Server
Client OAuth flow (see https://devconnect-api.att.com/docs/oauth20/autonomous-client-application-oauth-flow or
https://devconnect-api.att.com/docs/oauth20/web-server-client-application-oauth-flow respectively).
Client OAuth flow (see https://devconnect-api.att.com/docs/oauth-v1/client-credentials-grant-type or
https://devconnect-api.att.com/docs/oauth-v1/authorization-code-grant-type respectively).


2. Installation

** Requirements

To run the this sample application you need an IIS Server.
1. To run the this sample application you need an IIS Server.
2. Change the value of "href" at the following line in Default.aspx to point to the location of the "common.css" of "style" folder:
<link rel="stylesheet" type="text/css" href="../../style/common.css"/>
3. Change the value of the "url" at the following line in common.css to point to the location of the "att.gif" of "images" folder.
div#header { background:url(../images/att.gif) left center no-repeat; margin: 10px 5px}


3. Parameters


Each sample application contains a config.web file. It holds configurable parameters described in an easy to read format. Please populate the following parameters in config.web as specified below:
Each sample application contains a config.web file. It holds configurable parameters described in an easy to read format.
Please populate the following parameters in config.web as specified below:

1) api_key : {set the value as per your registered application 'API key' field value}

Expand All @@ -64,10 +69,12 @@ Each sample application contains a config.web file. It holds configurable parame

5) scope : DC

Note: If your application is promoted from Sandbox environment to Production environment and you decide to use production application settings, you must update parameters 1-2 as per production application details.
Note: If your application is promoted from Sandbox environment to Production environment and you decide to use production application settings,
you must update parameters 1-2 as per production application details.



4. Running the application

Suppose you copied the sample app files in your IIS server webroot/dc/app1/ folder, In order to run the sample application, type in'http://IIS_HOSTNAME/dc/app1/Default.aspx'
Suppose you copied the sample app files in your IIS server webroot/dc/app1/ folder, In order to run the sample application,
type in'http://IIS_HOSTNAME/dc/app1/Default.aspx'
Binary file added DC/Csharp/app1/images/att.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions DC/Csharp/app1/style/common.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*@charset "utf-8";*/
/* CSS Document */

html,body{ margin:0;padding:0}
body{font: 12px arial,sans-serif;text-align:center; color: #000}
p{margin:0 10px 10px}
a{color: #69BBE5}
h1 { font-size: 16px; margin: 0 0}
h2 { font-size: 14px; margin: 0 0}
div#header { background:url(../images/att.gif) left center no-repeat; margin: 10px 5px}
div#hcLeft { float:left; text-align: right; width: 39%; font-weight: bold}
div#hcRight { float:right; width: 59%}

div#content { border-top: 1px dashed #999}
div#container{ text-align:left}
div#content p{line-height:1.4}
div#footer{ font-size: 9px; text-align: center; border-top: 1px dashed #999; margin-top: 10px; padding-top: 10px}
div#footer p{ width: 500px; margin:0 auto;padding:5px 10px}

div#container{width:1000px;margin:0 auto}
div#navigation{float:left;width:500px}
div#extra{float:right;width:500px}
div#extra1{float:right;width:500px; height: 97px}
div#extra2{float:left;width:100%}
div#extraleft{float:left;width:200px}
div#footer{clear:both;width:100%}

div#gallerywrapper { width: 900px; margin: 10px auto; padding: 10px}
div#gallery { float: left; width: 150px; height: 190px; padding: 10px; margin-bottom: 15px; font-size: 9px}

.label, .cell { font: 12px Arial, Sans-serif}
.label { font-weight: bold}

.error { margin: 0 auto; border: 3px outset red; background: #fcc; width: 250px; padding: 5px; font-size: 11px }
.warning { margin: 0 auto; border: 3px outset yellow; background: #ffc; width: 250px; padding: 5px; font-size: 11px }
.success { margin: 0 auto; border: 3px outset green; background: #cfc; width: 250px; padding: 5px; font-size: 11px }
.errorWide { margin: 0 auto; border: 3px outset red; background: #fcc; width: 650px; padding: 5px; font-size: 11px }
.warningWide { margin: 0 auto; border: 3px outset yellow; background: #ffc; width: 650px; padding: 5px; font-size: 11px }
.successWide { margin: 0 auto; border: 3px outset green; background: #cfc; width: 650px; padding: 5px; font-size: 11px }
21 changes: 14 additions & 7 deletions DC/Vb/app1/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
AT&T API Samples - DC app 1
------------------------------

This file describes how to set up, configure and run the VB Applications of the AT&T HTML5 Program sample applications.
This file describes how to set up, configure and run the VB Applications of the AT&T RESTFul sample applications.
It covers all steps required to register the application on DevConnect and, based on the generated API keys and secrets,
create and run one's own full-fledged sample applications.

Expand Down Expand Up @@ -36,21 +36,26 @@ NOTE: You MUST select Device capability in the list of services under field 'Ser
so these values in your application should be adjusted accordingly.

Depending on the kind of authentication used, an application may be based on either the Autonomous Client or the Web-Server
Client OAuth flow (see https://devconnect-api.att.com/docs/oauth20/autonomous-client-application-oauth-flow or
https://devconnect-api.att.com/docs/oauth20/web-server-client-application-oauth-flow respectively).
Client OAuth flow (see https://devconnect-api.att.com/docs/oauth-v1/client-credentials-grant-type or
https://devconnect-api.att.com/docs/oauth-v1/authorization-code-grant-type respectively).


2. Installation

** Requirements

To run the this sample application you need an IIS Server.
1. To run the this sample application you need an IIS Server.
2. Change the value of "href" at the following line in Default.aspx to point to the location of the "common.css" of "style" folder:
<link rel="stylesheet" type="text/css" href="../../style/common.css"/>
3. Change the value of the "url" at the following line in common.css to point to the location of the "att.gif" of "images" folder.
div#header { background:url(../images/att.gif) left center no-repeat; margin: 10px 5px}


3. Parameters


Each sample application contains a config.web file. It holds configurable parameters described in an easy to read format. Please populate the following parameters in config.web as specified below:
Each sample application contains a config.web file. It holds configurable parameters described in an easy to read format.
Please populate the following parameters in config.web as specified below:

1) api_key : {set the value as per your registered application 'API key' field value}

Expand All @@ -64,10 +69,12 @@ Each sample application contains a config.web file. It holds configurable parame

5) scope : DC

Note: If your application is promoted from Sandbox environment to Production environment and you decide to use production application settings, you must update parameters 1-2 as per production application details.
Note: If your application is promoted from Sandbox environment to Production environment and you decide to use production application settings,
you must update parameters 1-2 as per production application details.



4. Running the application

Suppose you copied the sample app files in your IIS server webroot/dc/app1/ folder, In order to run the sample application, type in'http://IIS_HOSTNAME/dc/app1/Default.aspx'
Suppose you copied the sample app files in your IIS server webroot/dc/app1/ folder, In order to run the sample application,
type in'http://IIS_HOSTNAME/dc/app1/Default.aspx'
Binary file added DC/Vb/app1/images/att.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions DC/Vb/app1/style/common.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*@charset "utf-8";*/
/* CSS Document */

html,body{ margin:0;padding:0}
body{font: 12px arial,sans-serif;text-align:center; color: #000}
p{margin:0 10px 10px}
a{color: #69BBE5}
h1 { font-size: 16px; margin: 0 0}
h2 { font-size: 14px; margin: 0 0}
div#header { background:url(../images/att.gif) left center no-repeat; margin: 10px 5px}
div#hcLeft { float:left; text-align: right; width: 39%; font-weight: bold}
div#hcRight { float:right; width: 59%}

div#content { border-top: 1px dashed #999}
div#container{ text-align:left}
div#content p{line-height:1.4}
div#footer{ font-size: 9px; text-align: center; border-top: 1px dashed #999; margin-top: 10px; padding-top: 10px}
div#footer p{ width: 500px; margin:0 auto;padding:5px 10px}

div#container{width:1000px;margin:0 auto}
div#navigation{float:left;width:500px}
div#extra{float:right;width:500px}
div#extra1{float:right;width:500px; height: 97px}
div#extra2{float:left;width:100%}
div#extraleft{float:left;width:200px}
div#footer{clear:both;width:100%}

div#gallerywrapper { width: 900px; margin: 10px auto; padding: 10px}
div#gallery { float: left; width: 150px; height: 190px; padding: 10px; margin-bottom: 15px; font-size: 9px}

.label, .cell { font: 12px Arial, Sans-serif}
.label { font-weight: bold}

.error { margin: 0 auto; border: 3px outset red; background: #fcc; width: 250px; padding: 5px; font-size: 11px }
.warning { margin: 0 auto; border: 3px outset yellow; background: #ffc; width: 250px; padding: 5px; font-size: 11px }
.success { margin: 0 auto; border: 3px outset green; background: #cfc; width: 250px; padding: 5px; font-size: 11px }
.errorWide { margin: 0 auto; border: 3px outset red; background: #fcc; width: 650px; padding: 5px; font-size: 11px }
.warningWide { margin: 0 auto; border: 3px outset yellow; background: #ffc; width: 650px; padding: 5px; font-size: 11px }
.successWide { margin: 0 auto; border: 3px outset green; background: #cfc; width: 650px; padding: 5px; font-size: 11px }
23 changes: 15 additions & 8 deletions MMS/Csharp/app1/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
AT&T API Samples - MMS app 1
------------------------------

This file describes how to set up, configure and run the C# Applications of the AT&T HTML5 Program sample applications.
This file describes how to set up, configure and run the C# Applications of the AT&T RESTFul sample applications.
It covers all steps required to register the application on DevConnect and, based on the generated API keys and secrets,
create and run one's own full-fledged sample applications.

Expand Down Expand Up @@ -36,21 +36,26 @@ NOTE: You MUST select MMS in the list of services under field 'Services' in orde
so these values in your application should be adjusted accordingly.

Depending on the kind of authentication used, an application may be based on either the Autonomous Client or the Web-Server
Client OAuth flow (see https://devconnect-api.att.com/docs/oauth20/autonomous-client-application-oauth-flow or
https://devconnect-api.att.com/docs/oauth20/web-server-client-application-oauth-flow respectively).
Client OAuth flow (see https://devconnect-api.att.com/docs/oauth-v1/client-credentials-grant-type or
https://devconnect-api.att.com/docs/oauth-v1/authorization-code-grant-type respectively).


2. Installation

** Requirements

To run the this sample application you need an IIS Server.
1. To run the this sample application you need an IIS Server.
2. Change the value of "href" at the following line in Default.aspx to point to the location of the "common.css" of "style" folder:
<link rel="stylesheet" type="text/css" href="../../style/common.css"/>
3. Change the value of the "url" at the following line in common.css to point to the location of the "att.gif" of "images" folder.
div#header { background:url(../images/att.gif) left center no-repeat; margin: 10px 5px} To run the this sample application you need an IIS Server.


3. Parameters


Each sample application contains a config.web file. It holds configurable parameters described in an easy to read format. Please populate the following parameters in config.web as specified below:
Each sample application contains a config.web file. It holds configurable parameters described in an easy to read format.
Please populate the following parameters in config.web as specified below:

1) api_key : {set the value as per your registered application 'API key' field value}

Expand All @@ -62,19 +67,21 @@ Each sample application contains a config.web file. It holds configurable parame

4) FQDN : https://api.att.com

5) scope : SMS
5) scope : MMS

6) short_code : {set the value as per your registered application 'short code' field value}

7) AccessTokenFilePath : {set the value to the path of the file, which application creates and stores access token }

Note: If your application is promoted from Sandbox environment to Production environment and you decide to use production application settings, you must update parameters 1-2 as per production application details.
Note: If your application is promoted from Sandbox environment to Production environment and you decide to use production application settings,
you must update parameters 1-2 as per production application details.



4. Running the application

Suppose you copied the sample app files in your IIS server webroot/mms/app1/ folder, In order to run the sample application, type in'http://IIS_HOSTNAME/mms/app1/Default.aspx'
Suppose you copied the sample app files in your IIS server webroot/mms/app1/ folder, In order to run the sample application,
type in'http://IIS_HOSTNAME/mms/app1/Default.aspx'



Expand Down
Binary file added MMS/Csharp/app1/images/att.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions MMS/Csharp/app1/style/common.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*@charset "utf-8";*/
/* CSS Document */

html,body{ margin:0;padding:0}
body{font: 12px arial,sans-serif;text-align:center; color: #000}
p{margin:0 10px 10px}
a{color: #69BBE5}
h1 { font-size: 16px; margin: 0 0}
h2 { font-size: 14px; margin: 0 0}
div#header { background:url(../images/att.gif) left center no-repeat; margin: 10px 5px}
div#hcLeft { float:left; text-align: right; width: 39%; font-weight: bold}
div#hcRight { float:right; width: 59%}

div#content { border-top: 1px dashed #999}
div#container{ text-align:left}
div#content p{line-height:1.4}
div#footer{ font-size: 9px; text-align: center; border-top: 1px dashed #999; margin-top: 10px; padding-top: 10px}
div#footer p{ width: 500px; margin:0 auto;padding:5px 10px}

div#container{width:1000px;margin:0 auto}
div#navigation{float:left;width:500px}
div#extra{float:right;width:500px}
div#extra1{float:right;width:500px; height: 97px}
div#extra2{float:left;width:100%}
div#extraleft{float:left;width:200px}
div#footer{clear:both;width:100%}

div#gallerywrapper { width: 900px; margin: 10px auto; padding: 10px}
div#gallery { float: left; width: 150px; height: 190px; padding: 10px; margin-bottom: 15px; font-size: 9px}

.label, .cell { font: 12px Arial, Sans-serif}
.label { font-weight: bold}

.error { margin: 0 auto; border: 3px outset red; background: #fcc; width: 250px; padding: 5px; font-size: 11px }
.warning { margin: 0 auto; border: 3px outset yellow; background: #ffc; width: 250px; padding: 5px; font-size: 11px }
.success { margin: 0 auto; border: 3px outset green; background: #cfc; width: 250px; padding: 5px; font-size: 11px }
.errorWide { margin: 0 auto; border: 3px outset red; background: #fcc; width: 650px; padding: 5px; font-size: 11px }
.warningWide { margin: 0 auto; border: 3px outset yellow; background: #ffc; width: 650px; padding: 5px; font-size: 11px }
.successWide { margin: 0 auto; border: 3px outset green; background: #cfc; width: 650px; padding: 5px; font-size: 11px }
21 changes: 14 additions & 7 deletions MMS/Csharp/app2/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
AT&T API Samples - MMS app 2
------------------------------

This file describes how to set up, configure and run the C# Applications of the AT&T HTML5 Program sample applications.
This file describes how to set up, configure and run the C# Applications of the AT&T RESTFul sample applications.
It covers all steps required to register the application on DevConnect and, based on the generated API keys and secrets,
create and run one's own full-fledged sample applications.

Expand Down Expand Up @@ -36,21 +36,26 @@ NOTE: You MUST select MMS in the list of services under field 'Services' in orde
so these values in your application should be adjusted accordingly.

Depending on the kind of authentication used, an application may be based on either the Autonomous Client or the Web-Server
Client OAuth flow (see https://devconnect-api.att.com/docs/oauth20/autonomous-client-application-oauth-flow or
https://devconnect-api.att.com/docs/oauth20/web-server-client-application-oauth-flow respectively).
Client OAuth flow (see https://devconnect-api.att.com/docs/oauth-v1/client-credentials-grant-type or
https://devconnect-api.att.com/docs/oauth-v1/authorization-code-grant-type respectively).


2. Installation

** Requirements

To run the this sample application you need an IIS Server.
1. To run the this sample application you need an IIS Server.
2. Change the value of "href" at the following line in Default.aspx to point to the location of the "common.css" of "style" folder:
<link rel="stylesheet" type="text/css" href="../../style/common.css"/>
3. Change the value of the "url" at the following line in common.css to point to the location of the "att.gif" of "images" folder.
div#header { background:url(../images/att.gif) left center no-repeat; margin: 10px 5px}


3. Parameters


Each sample application contains a config.web file. It holds configurable parameters described in an easy to read format. Please populate the following parameters in config.web as specified below:
Each sample application contains a config.web file. It holds configurable parameters described in an easy to read format.
Please populate the following parameters in config.web as specified below:

1) api_key : {set the value as per your registered application 'API key' field value}

Expand All @@ -76,13 +81,15 @@ Each sample application contains a config.web file. It holds configurable parame

11) couponFileName : {set the value to the path of the image file, which will be sent as an mms messsage}

Note: If your application is promoted from Sandbox environment to Production environment and you decide to use production application settings, you must update parameters 1-2 as per production application details.
Note: If your application is promoted from Sandbox environment to Production environment and you decide to use production application settings,
you must update parameters 1-2 as per production application details.



4. Running the application

Suppose you copied the sample app files in your IIS server webroot/mms/app2/ folder, In order to run the sample application, type in'http://IIS_HOSTNAME/mms/app2/Default.aspx'
Suppose you copied the sample app files in your IIS server webroot/mms/app2/ folder, In order to run the sample application,
type in'http://IIS_HOSTNAME/mms/app2/Default.aspx'



Expand Down
Binary file added MMS/Csharp/app2/images/att.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading