diff --git a/DC/Csharp/app1/README.txt b/DC/Csharp/app1/README.txt index ee9488b..4e03aaf 100644 --- a/DC/Csharp/app1/README.txt +++ b/DC/Csharp/app1/README.txt @@ -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. @@ -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: + + 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} @@ -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' diff --git a/DC/Csharp/app1/images/att.gif b/DC/Csharp/app1/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/DC/Csharp/app1/images/att.gif differ diff --git a/DC/Csharp/app1/style/common.css b/DC/Csharp/app1/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/DC/Csharp/app1/style/common.css @@ -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 } diff --git a/DC/Vb/app1/README.txt b/DC/Vb/app1/README.txt index 03bbba4..ff7f9bc 100644 --- a/DC/Vb/app1/README.txt +++ b/DC/Vb/app1/README.txt @@ -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. @@ -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: + + 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} @@ -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' diff --git a/DC/Vb/app1/images/att.gif b/DC/Vb/app1/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/DC/Vb/app1/images/att.gif differ diff --git a/DC/Vb/app1/style/common.css b/DC/Vb/app1/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/DC/Vb/app1/style/common.css @@ -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 } diff --git a/MMS/Csharp/app1/README.txt b/MMS/Csharp/app1/README.txt index e1ecad2..ac7da5b 100644 --- a/MMS/Csharp/app1/README.txt +++ b/MMS/Csharp/app1/README.txt @@ -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. @@ -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: + + 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} @@ -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' diff --git a/MMS/Csharp/app1/images/att.gif b/MMS/Csharp/app1/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/MMS/Csharp/app1/images/att.gif differ diff --git a/MMS/Csharp/app1/style/common.css b/MMS/Csharp/app1/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/MMS/Csharp/app1/style/common.css @@ -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 } diff --git a/MMS/Csharp/app2/README.txt b/MMS/Csharp/app2/README.txt index d2904a1..4e41a69 100644 --- a/MMS/Csharp/app2/README.txt +++ b/MMS/Csharp/app2/README.txt @@ -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. @@ -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: + + 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} @@ -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' diff --git a/MMS/Csharp/app2/images/att.gif b/MMS/Csharp/app2/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/MMS/Csharp/app2/images/att.gif differ diff --git a/MMS/Csharp/app2/style/common.css b/MMS/Csharp/app2/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/MMS/Csharp/app2/style/common.css @@ -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 } diff --git a/MMS/Csharp/app3/README.txt b/MMS/Csharp/app3/README.txt index 7eda362..f919cfa 100644 --- a/MMS/Csharp/app3/README.txt +++ b/MMS/Csharp/app3/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - MMS app 3 ------------------------------ -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. @@ -37,27 +37,33 @@ 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: + + 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) short_code : {set the value as per your registered application 'short code' field value} 2) NumOfFilesToDisplay : {set the value, so that application displays latest n images} -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. diff --git a/MMS/Csharp/app3/images/att.gif b/MMS/Csharp/app3/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/MMS/Csharp/app3/images/att.gif differ diff --git a/MMS/Csharp/app3/style/common.css b/MMS/Csharp/app3/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/MMS/Csharp/app3/style/common.css @@ -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 } diff --git a/MMS/Vb/app1/README.txt b/MMS/Vb/app1/README.txt index b1f489b..1a8485a 100644 --- a/MMS/Vb/app1/README.txt +++ b/MMS/Vb/app1/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - MMS 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. @@ -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: + + 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} @@ -62,13 +67,14 @@ 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. diff --git a/MMS/Vb/app1/images/att.gif b/MMS/Vb/app1/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/MMS/Vb/app1/images/att.gif differ diff --git a/MMS/Vb/app1/style/common.css b/MMS/Vb/app1/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/MMS/Vb/app1/style/common.css @@ -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 } diff --git a/MMS/Vb/app2/README.txt b/MMS/Vb/app2/README.txt index 8fd2ff5..dcf1914 100644 --- a/MMS/Vb/app2/README.txt +++ b/MMS/Vb/app2/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - MMS app 2 ------------------------------ -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. @@ -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: + + 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} @@ -76,7 +81,8 @@ 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. diff --git a/MMS/Vb/app2/images/att.gif b/MMS/Vb/app2/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/MMS/Vb/app2/images/att.gif differ diff --git a/MMS/Vb/app2/style/common.css b/MMS/Vb/app2/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/MMS/Vb/app2/style/common.css @@ -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 } diff --git a/MMS/Vb/app3/README.txt b/MMS/Vb/app3/README.txt index cc9a5a6..4126df4 100644 --- a/MMS/Vb/app3/README.txt +++ b/MMS/Vb/app3/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - MMS app 3 ------------------------------ -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. @@ -37,21 +37,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: + + 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) short_code : {set the value as per your registered application 'short code' field value} @@ -59,7 +64,8 @@ Each sample application contains a config.web file. It holds configurable parame 3) NumOfFilesToDisplay : {set the value, so that application displays latest n images} -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. diff --git a/MMS/Vb/app3/images/att.gif b/MMS/Vb/app3/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/MMS/Vb/app3/images/att.gif differ diff --git a/MMS/Vb/app3/style/common.css b/MMS/Vb/app3/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/MMS/Vb/app3/style/common.css @@ -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 } diff --git a/Notary/Csharp/app1/README.txt b/Notary/Csharp/app1/README.txt index 190edc4..812919d 100644 --- a/Notary/Csharp/app1/README.txt +++ b/Notary/Csharp/app1/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - Notary 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. @@ -25,7 +25,7 @@ create and run one's own full-fledged sample applications. Be careful while filling in the "OAuth Redirect URL" field. It should contain the URL that the oAuth provider will redirect users to when he/she successfully authenticates and authorizes your application. -NOTE: You MUST select WAP in the list of services under field 'Services' in order to use this sample application code. +NOTE: You MUST select PAYMENT in the list of services under field 'Services' in order to use this sample application code. Having your application registered, you will get back an important pair of data: an API key and Secret key. They are necessary to get your applications working with the AT&T HTML5 APIs. See 'Adjusting parameters' below to learn how to use @@ -36,21 +36,26 @@ NOTE: You MUST select WAP 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: + + 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} diff --git a/Notary/Csharp/app1/images/att.gif b/Notary/Csharp/app1/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/Notary/Csharp/app1/images/att.gif differ diff --git a/Notary/Csharp/app1/style/common.css b/Notary/Csharp/app1/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/Notary/Csharp/app1/style/common.css @@ -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 } diff --git a/Notary/Vb/app1/README.txt b/Notary/Vb/app1/README.txt index 519fb56..47579bb 100644 --- a/Notary/Vb/app1/README.txt +++ b/Notary/Vb/app1/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - Notary 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. @@ -25,7 +25,7 @@ create and run one's own full-fledged sample applications. Be careful while filling in the "OAuth Redirect URL" field. It should contain the URL that the oAuth provider will redirect users to when he/she successfully authenticates and authorizes your application. -NOTE: You MUST select WAP in the list of services under field 'Services' in order to use this sample application code. +NOTE: You MUST select PAYMENT in the list of services under field 'Services' in order to use this sample application code. Having your application registered, you will get back an important pair of data: an API key and Secret key. They are necessary to get your applications working with the AT&T HTML5 APIs. See 'Adjusting parameters' below to learn how to use @@ -36,21 +36,26 @@ NOTE: You MUST select WAP 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: + + 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} diff --git a/Notary/Vb/app1/images/att.gif b/Notary/Vb/app1/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/Notary/Vb/app1/images/att.gif differ diff --git a/Notary/Vb/app1/style/common.css b/Notary/Vb/app1/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/Notary/Vb/app1/style/common.css @@ -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 } diff --git a/Payment/Csharp/app1/README.txt b/Payment/Csharp/app1/README.txt index 2a8b214..2a1083f 100644 --- a/Payment/Csharp/app1/README.txt +++ b/Payment/Csharp/app1/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - Payment 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. @@ -25,7 +25,7 @@ create and run one's own full-fledged sample applications. Be careful while filling in the "OAuth Redirect URL" field. It should contain the URL that the oAuth provider will redirect users to when he/she successfully authenticates and authorizes your application. -NOTE: You MUST select WAP in the list of services under field 'Services' in order to use this sample application code. +NOTE: You MUST select PAYMENT in the list of services under field 'Services' in order to use this sample application code. Having your application registered, you will get back an important pair of data: an API key and Secret key. They are necessary to get your applications working with the AT&T HTML5 APIs. See 'Adjusting parameters' below to learn how to use @@ -36,21 +36,26 @@ NOTE: You MUST select WAP 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: + + 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} @@ -61,7 +66,7 @@ Each sample application contains a config.web file. It holds configurable parame 4) scope : PAYMENT -5) paymentType : {set the value to "subscription" or "transaction"} +5) refundFile : {set the value to file path which has read/write permissions} 6) Amount : {set the value to decimal value} @@ -69,7 +74,7 @@ Each sample application contains a config.web file. It holds configurable parame 8) Channel : {set the value to MOBILE_WEB} -9) MerchantPaymentRedirectUrl : {set the value to the notary applicatoin link} +9) MerchantPaymentRedirectUrl : {set the value to the payment app1 application url} 10) IsPurchaseOnNoActiveSubscription : {set the value to false} @@ -83,10 +88,11 @@ Each sample application contains a config.web file. It holds configurable parame 15) notaryURL : {set the value to the notary app url} + 4. Running the application -Notary applicaiton is needed for this applicaiton. -Suppose you copied the sample app files in your IIS server webroot/notary/app1/ folder, In order to run the sample application, type in'http://IIS_HOSTNAME/notary/app1/Default.aspx' +Notary application 1 is needed for this application. +Suppose you copied the sample app files in your IIS server webroot/payment/app1/ folder, In order to run the sample application, type in'http://IIS_HOSTNAME/payment/app1/Default.aspx' diff --git a/Payment/Csharp/app1/Web.config b/Payment/Csharp/app1/Web.config index 04e8f95..b4bdd02 100644 --- a/Payment/Csharp/app1/Web.config +++ b/Payment/Csharp/app1/Web.config @@ -76,7 +76,7 @@ the file with transactions id information, so, make sure to give write access to the folder defined. If the key is not defined, refundFile.txt will be created at root folder, so, make sure to give write access to the root folder - example: value="~\\csharpapps\\payment\\app1\\PayApp1AccessToken.txt" + example: value="~\\csharpapps\\payment\\app1\\refundFile.txt" --> diff --git a/Payment/Csharp/app1/images/att.gif b/Payment/Csharp/app1/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/Payment/Csharp/app1/images/att.gif differ diff --git a/Payment/Csharp/app1/style/common.css b/Payment/Csharp/app1/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/Payment/Csharp/app1/style/common.css @@ -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 } diff --git a/Payment/Csharp/app2/README.txt b/Payment/Csharp/app2/README.txt new file mode 100644 index 0000000..68e94e2 --- /dev/null +++ b/Payment/Csharp/app2/README.txt @@ -0,0 +1,102 @@ + + AT&T API Samples - Payment app 2 + ------------------------------ + +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. + + 1. Configuration + 2. Installation + 3. Parameters + 4. Running the application + + +1. Configuration + + Configuration consists of a few steps necessary to get an application registered on DevConnect with the proper services and + endpoints, depending on the type of client-side application (autonomous/non-autonomous). + + To register an application, go to https://devconnect-api.att.com/ and login with your valid username and password. + Next, choose "My Apps" from the bar at the top of the page and click the "Setup a New Application" button. + + Fill in the form, in particular all fields marked as "required". + + Be careful while filling in the "OAuth Redirect URL" field. It should contain the URL that the oAuth provider will redirect + users to when he/she successfully authenticates and authorizes your application. + +NOTE: You MUST select PAYMENT in the list of services under field 'Services' in order to use this sample application code. + + Having your application registered, you will get back an important pair of data: an API key and Secret key. They are + necessary to get your applications working with the AT&T HTML5 APIs. See 'Adjusting parameters' below to learn how to use + these keys. + + Initially your newly registered application is restricted to the "Sandbox" environment only. To move it to production, + you may promote it by clicking the "Promote to production" button. Notice that you will get a different API key and secret, + 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/oauth-v1/client-credentials-grant-type or + https://devconnect-api.att.com/docs/oauth-v1/authorization-code-grant-type respectively). + + +2. Installation + +** Requirements + + 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: + + 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: + +1) api_key : {set the value as per your registered application 'API key' field value} + + +2) secret_key : {set the value as per your registered application 'Secret key' field value} + +3) FQDN : https://api.att.com + +4) scope : PAYMENT + +5) subsRefundFile : {set the value to file path which has read/write permissions} + +6) Amount : {set the value to decimal value} + +7) Category : {set the value to 1,3,4 or 5} + +8) Channel : {set the value to MOBILE_WEB} + +9) MerchantPaymentRedirectUrl : {set the value to the payment app2 application url} + +10) IsPurchaseOnNoActiveSubscription : {set the value to false} + +11) SubscriptionRecurringNumber" : {set the value to 9999} + +12) SubscriptionRecurringPeriod : {set the value to MONTHLY} + +13) SubscriptionRecurringPeriodAmount : {set the value to 1} + +14) AccessTokenFilePath : {set the value to the path of the file, which application creates and stores access token } + +15) notaryURL : {set the value to the notary app url} + +16) subsDetailsFile : {set the value to file path which has read/write permissions} + +4. Running the application + +Notary application 1 is needed for this application. +Suppose you copied the sample app files in your IIS server webroot/payment/app2/ folder, In order to run the sample application, type in'http://IIS_HOSTNAME/payment/app2/Default.aspx' + + + + + + diff --git a/Payment/Csharp/app2/Web.config b/Payment/Csharp/app2/Web.config index 5b58f9d..5068425 100644 --- a/Payment/Csharp/app2/Web.config +++ b/Payment/Csharp/app2/Web.config @@ -39,14 +39,14 @@ diff --git a/Payment/Csharp/app2/images/att.gif b/Payment/Csharp/app2/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/Payment/Csharp/app2/images/att.gif differ diff --git a/Payment/Csharp/app2/style/common.css b/Payment/Csharp/app2/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/Payment/Csharp/app2/style/common.css @@ -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 } diff --git a/Payment/Vb/app1/README.txt b/Payment/Vb/app1/README.txt index 2a60497..a238f10 100644 --- a/Payment/Vb/app1/README.txt +++ b/Payment/Vb/app1/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - Payment 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. @@ -25,7 +25,7 @@ create and run one's own full-fledged sample applications. Be careful while filling in the "OAuth Redirect URL" field. It should contain the URL that the oAuth provider will redirect users to when he/she successfully authenticates and authorizes your application. -NOTE: You MUST select WAP in the list of services under field 'Services' in order to use this sample application code. +NOTE: You MUST select PAYMENT in the list of services under field 'Services' in order to use this sample application code. Having your application registered, you will get back an important pair of data: an API key and Secret key. They are necessary to get your applications working with the AT&T HTML5 APIs. See 'Adjusting parameters' below to learn how to use @@ -36,8 +36,8 @@ NOTE: You MUST select WAP 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 @@ -61,7 +61,7 @@ Each sample application contains a config.web file. It holds configurable parame 4) scope : PAYMENT -5) paymentType : {set the value to "subscription" or "transaction"} +5) refundFile : {set the value to file path which has read/write permissions} 6) Amount : {set the value to decimal value} @@ -69,7 +69,7 @@ Each sample application contains a config.web file. It holds configurable parame 8) Channel : {set the value to MOBILE_WEB} -9) MerchantPaymentRedirectUrl : {set the value to the notary applicatoin link} +9) MerchantPaymentRedirectUrl : {set the value to the payment application url} 10) IsPurchaseOnNoActiveSubscription : {set the value to false} @@ -85,8 +85,8 @@ Each sample application contains a config.web file. It holds configurable parame 4. Running the application -Notary applicaiton is needed for this applicaiton. -Suppose you copied the sample app files in your IIS server webroot/notary/app1/ folder, In order to run the sample application, type in'http://IIS_HOSTNAME/notary/app1/Default.aspx' +Notary application 1 is needed for this application. +Suppose you copied the sample app files in your IIS server webroot/payment/app1/ folder, In order to run the sample application, type in'http://IIS_HOSTNAME/payment/app1/Default.aspx' diff --git a/Payment/Vb/app1/Web.config b/Payment/Vb/app1/Web.config index 04e8f95..b4bdd02 100644 --- a/Payment/Vb/app1/Web.config +++ b/Payment/Vb/app1/Web.config @@ -76,7 +76,7 @@ the file with transactions id information, so, make sure to give write access to the folder defined. If the key is not defined, refundFile.txt will be created at root folder, so, make sure to give write access to the root folder - example: value="~\\csharpapps\\payment\\app1\\PayApp1AccessToken.txt" + example: value="~\\csharpapps\\payment\\app1\\refundFile.txt" --> diff --git a/Payment/Vb/app1/images/att.gif b/Payment/Vb/app1/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/Payment/Vb/app1/images/att.gif differ diff --git a/Payment/Vb/app1/style/common.css b/Payment/Vb/app1/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/Payment/Vb/app1/style/common.css @@ -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 } diff --git a/Payment/Vb/app2/README.txt b/Payment/Vb/app2/README.txt new file mode 100644 index 0000000..b0dd806 --- /dev/null +++ b/Payment/Vb/app2/README.txt @@ -0,0 +1,102 @@ + + AT&T API Samples - Payment app 2 + ------------------------------ + +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. + + 1. Configuration + 2. Installation + 3. Parameters + 4. Running the application + + +1. Configuration + + Configuration consists of a few steps necessary to get an application registered on DevConnect with the proper services and + endpoints, depending on the type of client-side application (autonomous/non-autonomous). + + To register an application, go to https://devconnect-api.att.com/ and login with your valid username and password. + Next, choose "My Apps" from the bar at the top of the page and click the "Setup a New Application" button. + + Fill in the form, in particular all fields marked as "required". + + Be careful while filling in the "OAuth Redirect URL" field. It should contain the URL that the oAuth provider will redirect + users to when he/she successfully authenticates and authorizes your application. + +NOTE: You MUST select PAYMENT in the list of services under field 'Services' in order to use this sample application code. + + Having your application registered, you will get back an important pair of data: an API key and Secret key. They are + necessary to get your applications working with the AT&T HTML5 APIs. See 'Adjusting parameters' below to learn how to use + these keys. + + Initially your newly registered application is restricted to the "Sandbox" environment only. To move it to production, + you may promote it by clicking the "Promote to production" button. Notice that you will get a different API key and secret, + 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/oauth-v1/client-credentials-grant-type or + https://devconnect-api.att.com/docs/oauth-v1/authorization-code-grant-type respectively). + + +2. Installation + +** Requirements + + 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: + + 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: + +1) api_key : {set the value as per your registered application 'API key' field value} + + +2) secret_key : {set the value as per your registered application 'Secret key' field value} + +3) FQDN : https://api.att.com + +4) scope : PAYMENT + +5) subsRefundFile : {set the value to file path which has read/write permissions} + +6) Amount : {set the value to decimal value} + +7) Category : {set the value to 1,3,4 or 5} + +8) Channel : {set the value to MOBILE_WEB} + +9) MerchantPaymentRedirectUrl : {set the value to the payment app2 application url} + +10) IsPurchaseOnNoActiveSubscription : {set the value to false} + +11) SubscriptionRecurringNumber" : {set the value to 9999} + +12) SubscriptionRecurringPeriod : {set the value to MONTHLY} + +13) SubscriptionRecurringPeriodAmount : {set the value to 1} + +14) AccessTokenFilePath : {set the value to the path of the file, which application creates and stores access token } + +15) notaryURL : {set the value to the notary app url} + +16) subsDetailsFile : {set the value to file path which has read/write permissions} + +4. Running the application + +Notary application 1 is needed for this application. +Suppose you copied the sample app files in your IIS server webroot/payment/app2/ folder, In order to run the sample application, type in'http://IIS_HOSTNAME/payment/app2/Default.aspx' + + + + + + diff --git a/Payment/Vb/app2/images/att.gif b/Payment/Vb/app2/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/Payment/Vb/app2/images/att.gif differ diff --git a/Payment/Vb/app2/style/common.css b/Payment/Vb/app2/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/Payment/Vb/app2/style/common.css @@ -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 } diff --git a/SMS/Csharp/app1/README.txt b/SMS/Csharp/app1/README.txt index e8f5d3f..bea1597 100644 --- a/SMS/Csharp/app1/README.txt +++ b/SMS/Csharp/app1/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - SMS 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. @@ -36,21 +36,26 @@ NOTE: You MUST select SMS 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: + + 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} @@ -68,7 +73,8 @@ Each sample application contains a config.web file. It holds configurable parame 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. diff --git a/SMS/Csharp/app1/images/att.gif b/SMS/Csharp/app1/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/SMS/Csharp/app1/images/att.gif differ diff --git a/SMS/Csharp/app1/style/common.css b/SMS/Csharp/app1/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/SMS/Csharp/app1/style/common.css @@ -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 } diff --git a/SMS/Csharp/app2/README.txt b/SMS/Csharp/app2/README.txt index bcfae6c..5a1bfcf 100644 --- a/SMS/Csharp/app2/README.txt +++ b/SMS/Csharp/app2/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - SMS 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. @@ -36,16 +36,19 @@ NOTE: You MUST select SMS 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: + + 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 diff --git a/SMS/Csharp/app2/images/att.gif b/SMS/Csharp/app2/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/SMS/Csharp/app2/images/att.gif differ diff --git a/SMS/Csharp/app2/style/common.css b/SMS/Csharp/app2/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/SMS/Csharp/app2/style/common.css @@ -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 } diff --git a/SMS/Vb/app1/README.txt b/SMS/Vb/app1/README.txt index 4542b6b..edf7711 100644 --- a/SMS/Vb/app1/README.txt +++ b/SMS/Vb/app1/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - SMS 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. @@ -36,15 +36,19 @@ NOTE: You MUST select SMS 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: + + 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 diff --git a/SMS/Vb/app1/images/att.gif b/SMS/Vb/app1/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/SMS/Vb/app1/images/att.gif differ diff --git a/SMS/Vb/app1/style/common.css b/SMS/Vb/app1/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/SMS/Vb/app1/style/common.css @@ -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 } diff --git a/SMS/Vb/app2/README.txt b/SMS/Vb/app2/README.txt index 726572e..d0c6fe2 100644 --- a/SMS/Vb/app2/README.txt +++ b/SMS/Vb/app2/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - SMS app 2 ------------------------------ -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. @@ -36,16 +36,19 @@ NOTE: You MUST select SMS 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: + + 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 diff --git a/SMS/Vb/app2/images/att.gif b/SMS/Vb/app2/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/SMS/Vb/app2/images/att.gif differ diff --git a/SMS/Vb/app2/style/common.css b/SMS/Vb/app2/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/SMS/Vb/app2/style/common.css @@ -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 } diff --git a/TL/Csharp/app1/README.txt b/TL/Csharp/app1/README.txt index 35d2c83..7a34adf 100644 --- a/TL/Csharp/app1/README.txt +++ b/TL/Csharp/app1/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - TL 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. @@ -36,21 +36,26 @@ NOTE: You MUST select Terminal Location 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: + + 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} @@ -64,7 +69,8 @@ Each sample application contains a config.web file. It holds configurable parame 5) scope : TL -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. diff --git a/TL/Csharp/app1/images/att.gif b/TL/Csharp/app1/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/TL/Csharp/app1/images/att.gif differ diff --git a/TL/Csharp/app1/style/common.css b/TL/Csharp/app1/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/TL/Csharp/app1/style/common.css @@ -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 } diff --git a/TL/Vb/app1/README.txt b/TL/Vb/app1/README.txt index 0a06fca..9979061 100644 --- a/TL/Vb/app1/README.txt +++ b/TL/Vb/app1/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - TL 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. @@ -36,21 +36,26 @@ NOTE: You MUST select Terminal Location 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: + + 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} @@ -64,7 +69,8 @@ Each sample application contains a config.web file. It holds configurable parame 5) scope : TL -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. diff --git a/TL/Vb/app1/images/att.gif b/TL/Vb/app1/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/TL/Vb/app1/images/att.gif differ diff --git a/TL/Vb/app1/style/common.css b/TL/Vb/app1/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/TL/Vb/app1/style/common.css @@ -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 } diff --git a/WAP/Csharp/app1/README.txt b/WAP/Csharp/app1/README.txt index 57042d2..0b4de07 100644 --- a/WAP/Csharp/app1/README.txt +++ b/WAP/Csharp/app1/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - WAP 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. @@ -36,15 +36,19 @@ NOTE: You MUST select WAP 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: + + 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 diff --git a/WAP/Csharp/app1/images/att.gif b/WAP/Csharp/app1/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/WAP/Csharp/app1/images/att.gif differ diff --git a/WAP/Csharp/app1/style/common.css b/WAP/Csharp/app1/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/WAP/Csharp/app1/style/common.css @@ -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 } diff --git a/WAP/Vb/app1/README.txt b/WAP/Vb/app1/README.txt index d269211..0f21cb3 100644 --- a/WAP/Vb/app1/README.txt +++ b/WAP/Vb/app1/README.txt @@ -2,7 +2,7 @@ AT&T API Samples - WAP 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. @@ -36,15 +36,19 @@ NOTE: You MUST select WAP 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: + + 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 diff --git a/WAP/Vb/app1/images/att.gif b/WAP/Vb/app1/images/att.gif new file mode 100644 index 0000000..e008f7c Binary files /dev/null and b/WAP/Vb/app1/images/att.gif differ diff --git a/WAP/Vb/app1/style/common.css b/WAP/Vb/app1/style/common.css new file mode 100644 index 0000000..0959602 --- /dev/null +++ b/WAP/Vb/app1/style/common.css @@ -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 }