Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cleaned up content.

Cleaned up content.
Cleaned up spelling.
  • Loading branch information...
commit c3bd23e1b06365523815127dbca3c4486b1e1ef6 1 parent d131eaa
@jm380v-att-com jm380v-att-com authored
Showing with 575 additions and 582 deletions.
  1. +27 −27 DC/Csharp/app1/Default.aspx.cs
  2. +6 −6 DC/Csharp/app1/Web.config
  3. +1 −1  DC/PHP/app1/README.txt
  4. +2 −2 DC/Ruby/app1/README
  5. +1 −1  DC/Ruby/app1/dc.rb
  6. +8 −8 DC/Vb/app1/Default.aspx.vb
  7. +6 −6 DC/Vb/app1/Web.config
  8. +5 −5 MIM/Csharp/app1/Default.aspx.cs
  9. +2 −2 MIM/Csharp/app1/README.txt
  10. +2 −2 MIM/Java/app1/MIM.jsp
  11. +2 −2 MIM/Ruby/app1/README
  12. +2 −2 MIM/Ruby/app1/views/mim.erb
  13. +4 −4 MIM/Vb/app1/Default.aspx.vb
  14. +2 −2 MIM/Vb/app1/README.txt
  15. +4 −4 MMS/Csharp/app1/Default.aspx.cs
  16. +1 −1  MMS/Csharp/app1/README.txt
  17. +4 −4 MMS/Csharp/app1/Web.config
  18. +4 −4 MMS/Csharp/app2/Default.aspx.cs
  19. +1 −1  MMS/Csharp/app2/README.txt
  20. +5 −5 MMS/Csharp/app2/Web.config
  21. +1 −1  MMS/Csharp/app3/Default.aspx.cs
  22. +1 −1  MMS/Csharp/app3/Listener.aspx.cs
  23. +1 −1  MMS/Csharp/app3/README.txt
  24. +1 −1  MMS/Csharp/app3/Web.config
  25. +2 −4 MMS/Java/app1/MMS.jsp
  26. +1 −1  MMS/PHP/app2/README.txt
  27. +2 −2 MMS/Ruby/app1/README
  28. +2 −2 MMS/Ruby/app2/README
  29. +3 −3 MMS/Ruby/app3/README
  30. +4 −4 MMS/Vb/app1/Default.aspx.vb
  31. +1 −1  MMS/Vb/app1/README.txt
  32. +4 −4 MMS/Vb/app1/Web.config
  33. +4 −4 MMS/Vb/app2/Default.aspx.vb
  34. +1 −1  MMS/Vb/app2/README.txt
  35. +5 −5 MMS/Vb/app2/Web.config
  36. +2 −2 MMS/Vb/app3/Default.aspx.vb
  37. +2 −2 MMS/Vb/app3/Listener.aspx.vb
  38. +1 −1  MMS/Vb/app3/README.txt
  39. +1 −1  MMS/Vb/app3/Web.config
  40. +3 −5 MOBO/Csharp/app1/Default.aspx
  41. +6 −6 MOBO/Csharp/app1/Default.aspx.cs
  42. +4 −4 MOBO/Csharp/app1/README.txt
  43. +1 −1  MOBO/Java/app1/MOBO.jsp
  44. +1 −1  MOBO/Java/app1/README.txt
  45. +2 −2 MOBO/PHP/app1/README.txt
  46. +3 −3 MOBO/Ruby/app1/README
  47. +2 −2 MOBO/Ruby/app1/views/mobo.erb
  48. +3 −5 MOBO/Vb/app1/Default.aspx
  49. +6 −6 MOBO/Vb/app1/Default.aspx.vb
  50. +4 −4 MOBO/Vb/app1/README.txt
  51. +3 −3 Notary/Csharp/app1/Default.aspx.cs
  52. +1 −1  Notary/Csharp/app1/README.txt
  53. +4 −4 Notary/Csharp/app1/Web.config
  54. +1 −1  Notary/Java/app1/notary.jsp
  55. +6 −6 Notary/PHP/app1/index.php
  56. +2 −2 Notary/Ruby/app1/README
  57. +1 −1  Notary/Ruby/app1/views/notary.erb
  58. +1 −2  Notary/Vb/app1/Default.aspx
  59. +3 −3 Notary/Vb/app1/Default.aspx.vb
  60. +1 −1  Notary/Vb/app1/README.txt
  61. +4 −4 Notary/Vb/app1/Web.config
  62. +3 −3 Payment/Csharp/app1/Default.aspx.cs
  63. +4 −4 Payment/Csharp/app1/README.txt
  64. +4 −4 Payment/Csharp/app1/Web.config
  65. +3 −3 Payment/Csharp/app1/listener/Default.aspx.cs
  66. +2 −2 Payment/Csharp/app2/Default.aspx.cs
  67. +5 −5 Payment/Csharp/app2/README.txt
  68. +4 −4 Payment/Csharp/app2/Web.config
  69. +3 −3 Payment/Csharp/app2/listener/Default.aspx.cs
  70. +1 −1  Payment/Java/app1/notary.jsp
  71. +1 −1  Payment/Java/app2/notary.jsp
  72. +1 −1  Payment/PHP/app1/README.txt
  73. +6 −6 Payment/PHP/app1/notary.php
  74. +59 −59 Payment/PHP/app1/singlepay.php
  75. +1 −1  Payment/PHP/app2/README.txt
  76. +6 −6 Payment/PHP/app2/notary.php
  77. +68 −68 Payment/PHP/app2/subscription.php
  78. +3 −3 Payment/Ruby/app1/README
  79. +2 −2 Payment/Ruby/app1/views/app1.erb
  80. +1 −1  Payment/Ruby/app1/views/notary.erb
  81. +3 −3 Payment/Ruby/app2/README
  82. +1 −1  Payment/Ruby/app2/views/app2.erb
  83. +1 −1  Payment/Ruby/app2/views/notary.erb
  84. +3 −3 Payment/Vb/app1/Default.aspx.vb
  85. +4 −4 Payment/Vb/app1/README.txt
  86. +4 −4 Payment/Vb/app1/Web.config
  87. +3 −3 Payment/Vb/app1/listener/Default.aspx.vb
  88. +2 −2 Payment/Vb/app2/Default.aspx.vb
  89. +5 −5 Payment/Vb/app2/README.txt
  90. +4 −4 Payment/Vb/app2/Web.config
  91. +3 −3 Payment/Vb/app2/listener/Default.aspx.vb
  92. +5 −5 SMS/Csharp/app1/Default.aspx.cs
  93. +1 −1  SMS/Csharp/app1/README.txt
  94. +5 −5 SMS/Csharp/app1/Web.config
  95. +1 −1  SMS/Csharp/app2/Default.aspx
  96. +3 −3 SMS/Csharp/app2/Default.aspx.cs
  97. +2 −2 SMS/Csharp/app2/Listener.aspx.cs
  98. +1 −1  SMS/Csharp/app2/README.txt
  99. +2 −2 SMS/Java/app2/SMS2.jsp
  100. +1 −1  SMS/PHP/app1/README.txt
  101. +1 −1  SMS/PHP/app2/README.txt
  102. +23 −23 SMS/PHP/app2/index.php
  103. +2 −2 SMS/Ruby/app1/README
  104. +2 −2 SMS/Ruby/app2/README
  105. +3 −3 SMS/Ruby/app2/views/sms2.erb
  106. +5 −5 SMS/Vb/app1/Default.aspx.vb
  107. +1 −1  SMS/Vb/app1/README.txt
  108. +5 −5 SMS/Vb/app1/Web.config
  109. +1 −1  SMS/Vb/app2/Default.aspx
  110. +3 −3 SMS/Vb/app2/Default.aspx.vb
  111. +2 −2 SMS/Vb/app2/Listener.aspx.vb
  112. +1 −1  SMS/Vb/app2/README.txt
  113. +2 −2 Speech/Csharp/app1/Default.aspx
  114. +9 −9 Speech/Csharp/app1/Default.aspx.cs
  115. +2 −2 Speech/Csharp/app1/README.txt
  116. +2 −2 Speech/Java/app1/WEB-INF/lib/RELEASE-NOTES.txt
  117. +1 −1  Speech/PHP/README.txt
  118. +3 −3 Speech/Ruby/app1/README.txt
  119. +1 −1  Speech/Ruby/app1/speech.rb
  120. +2 −2 Speech/Vb/app1/Default.aspx
  121. +10 −10 Speech/Vb/app1/Default.aspx.vb
  122. +2 −2 Speech/Vb/app1/README.txt
  123. +1 −1  TL/Csharp/app1/Default.aspx
  124. +12 −12 TL/Csharp/app1/Default.aspx.cs
  125. +2 −2 TL/Csharp/app1/README.txt
  126. +5 −5 TL/Csharp/app1/Web.config
  127. +1 −1  TL/Java/app1/README.txt
  128. +3 −3 TL/PHP/app1/README.txt
  129. +4 −4 TL/Ruby/app1/README
  130. +1 −1  TL/Vb/app1/Default.aspx
  131. +13 −13 TL/Vb/app1/Default.aspx.vb
  132. +2 −2 TL/Vb/app1/README.txt
  133. +6 −6 TL/Vb/app1/Web.config
  134. +4 −4 WAP/Csharp/app1/Default.aspx.cs
  135. +1 −1  WAP/Csharp/app1/README.txt
  136. +4 −4 WAP/Csharp/app1/Web.config
  137. +1 −1  WAP/PHP/app1/README.txt
  138. +2 −2 WAP/Ruby/app1/README
  139. +4 −4 WAP/Vb/app1/Default.aspx.vb
  140. +1 −1  WAP/Vb/app1/README.txt
  141. +4 −4 WAP/Vb/app1/Web.config
View
54 DC/Csharp/app1/Default.aspx.cs
@@ -1,7 +1,7 @@
-//Licensed by AT&T under 'Software Development Kit Tools Agreement.' September 2011
-//TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
-//Copyright 2011 AT&T Intellectual Property. All rights reserved. http://developer.att.com
-//For more information contact developer.support@att.com
+// Licensed by AT&T under 'Software Development Kit Tools Agreement.' September 2011
+// TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
+// Copyright 2011 AT&T Intellectual Property. All rights reserved. http://developer.att.com
+// For more information contact developer.support@att.com
using System;
using System.Collections.Generic;
@@ -59,7 +59,7 @@ public void resetTokenSessionVariables()
Session["dc_session_lastTokenTakenTime"] = null;
Session["dc_session_refreshTokenExpiryTime"] = null;
}
- /* This function resets access token related variable to null */
+ /* This function resets access token related variable to null */
public void resetTokenVariables()
{
access_token = null;
@@ -69,9 +69,9 @@ public void resetTokenVariables()
refreshTokenExpiryTime = null;
}
- /* This function validates access token related variables and returns VALID_ACCESS_TOKEN if its valid
+ /* This function validates access token related variables and returns VALID_ACCESS_TOKEN if it is valid
* otherwise, returns INVALID_ACCESS_TOKEN if refresh token expired or not able to read session variables
- * return REFRESH_TOKEN, if access token in expired and refresh token is valid
+ * return REFRESH_TOKEN, if access token is expired and refresh token is valid
*/
public string isTokenValid()
{
@@ -128,7 +128,7 @@ public void getAuthCode()
/* This function get the access token based on the type parameter type values.
* If type value is 0, access token is fetch for authorization code flow
- * If type value is 2, access token is fetch for authorization code floww based on the exisiting refresh token
+ * If type value is 2, access token is fetch for authorization code flow based on the exisiting refresh token
*/
public bool getAccessToken(int type)
{
@@ -141,7 +141,7 @@ public bool getAccessToken(int type)
accessTokenRequest.Method = "POST";
string oauthParameters = "client_id=" + api_key.ToString() + "&client_secret=" + secret_key.ToString() + "&code=" + auth_code.ToString() + "&grant_type=authorization_code";
accessTokenRequest.ContentType = "application/x-www-form-urlencoded";
- //sendSmsRequestObject.Accept = "application/json";
+ // sendSmsRequestObject.Accept = "application/json";
UTF8Encoding encoding = new UTF8Encoding();
byte[] postBytes = encoding.GetBytes(oauthParameters);
accessTokenRequest.ContentLength = postBytes.Length;
@@ -194,7 +194,7 @@ public bool getAccessToken(int type)
accessTokenRequest.Method = "POST";
string oauthParameters = "grant_type=refresh_token&client_id=" + api_key.ToString() + "&client_secret=" + secret_key.ToString() + "&refresh_token=" + refresh_token.ToString();
accessTokenRequest.ContentType = "application/x-www-form-urlencoded";
- //sendSmsRequestObject.Accept = "application/json";
+ // sendSmsRequestObject.Accept = "application/json";
UTF8Encoding encoding = new UTF8Encoding();
byte[] postBytes = encoding.GetBytes(oauthParameters);
@@ -241,7 +241,7 @@ public bool getAccessToken(int type)
return false;
}
- /* This funciton draws table for error response */
+ /* This function draws table for error response */
private void drawPanelForFailure(Panel panelParam, string message)
{
Table table = new Table();
@@ -254,11 +254,11 @@ private void drawPanelForFailure(Panel panelParam, string message)
rowOneCellOne.Font.Bold = true;
rowOneCellOne.Text = "ERROR:";
rowOne.Controls.Add(rowOneCellOne);
- //rowOneCellOne.BorderWidth = 1;
+ // rowOneCellOne.BorderWidth = 1;
table.Controls.Add(rowOne);
TableRow rowTwo = new TableRow();
TableCell rowTwoCellOne = new TableCell();
- //rowTwoCellOne.BorderWidth = 1;
+ // rowTwoCellOne.BorderWidth = 1;
rowTwoCellOne.Text = message.ToString();
rowTwo.Controls.Add(rowTwoCellOne);
table.Controls.Add(rowTwo);
@@ -268,8 +268,8 @@ private void drawPanelForFailure(Panel panelParam, string message)
panelParam.Controls.Add(table);
}
/*
- * This function is called when the applicaiton page is loaded into the browser.
- * This fucntion reads the web.config and gets the values of the attributes
+ * This function is called when the application page is loaded into the web browser.
+ * This function reads the web.config file and gets the values of the attributes.
*
*/
protected void Page_Load(object sender, EventArgs e)
@@ -346,7 +346,7 @@ protected void Page_Load(object sender, EventArgs e)
}
}
- /*This funciton checks the validity of string as msisdn */
+ /*This function checks the validity of string as msisdn */
private Boolean isValidMISDN(string number)
{
@@ -421,23 +421,23 @@ private void drawPanelForGetStatusResult(string attribute, string value, bool he
getStatusTable.Font.Size = 9;
getStatusTable.Font.Name = "Sans-serif";
getStatusTable.Font.Italic = true;
- //getStatusTable.HorizontalAlign = HorizontalAlign.Center;
+ // getStatusTable.HorizontalAlign = HorizontalAlign.Center;
TableRow rowOne = new TableRow();
TableCell rowOneCellOne = new TableCell();
rowOneCellOne.Font.Bold = true;
- //rowOneCellOne.BorderWidth = 1;
+ // rowOneCellOne.BorderWidth = 1;
rowOneCellOne.Text = "Parameter";
rowOneCellOne.HorizontalAlign = HorizontalAlign.Center;
rowOne.Controls.Add(rowOneCellOne);
TableCell rowOneCellTwo = new TableCell();
rowOneCellTwo.Font.Bold = true;
- //rowOneCellTwo.BorderWidth = 1;
+ // rowOneCellTwo.BorderWidth = 1;
rowOneCellTwo.Text = "Value";
rowOneCellTwo.HorizontalAlign = HorizontalAlign.Center;
rowOne.Controls.Add(rowOneCellTwo);
- //getStatusTable.BorderWidth = 2;
- //getStatusTable.BorderColor = Color.DarkGreen;
- //getStatusTable.BackColor = System.Drawing.ColorTranslator.FromHtml("#cfc");
+ // getStatusTable.BorderWidth = 2;
+ // getStatusTable.BorderColor = Color.DarkGreen;
+ // getStatusTable.BackColor = System.Drawing.ColorTranslator.FromHtml("#cfc");
getStatusTable.Controls.Add(rowOne);
dcPanel.Controls.Add(getStatusTable);
}
@@ -447,11 +447,11 @@ private void drawPanelForGetStatusResult(string attribute, string value, bool he
TableCell cell1 = new TableCell();
TableCell cell2 = new TableCell();
cell1.Text = attribute.ToString();
- //cell1.BorderWidth = 1;
+ // cell1.BorderWidth = 1;
cell1.HorizontalAlign = HorizontalAlign.Center;
row.Controls.Add(cell1);
cell2.Text = value.ToString();
- //cell2.BorderWidth = 1;
+ // cell2.BorderWidth = 1;
cell2.HorizontalAlign = HorizontalAlign.Center;
row.Controls.Add(cell2);
getStatusTable.Controls.Add(row);
@@ -516,8 +516,8 @@ protected void getDCCapabilities_Click(object sender, EventArgs e)
Session["dc_session_GdeviceID"] = deviceId.ToString();
getAuthCode();
}
- //readCheckVerifyAccessToken();
- // Form Http Web Request
+ // readCheckVerifyAccessToken();
+ // Form Http Web Request
HttpWebRequest deviceInfoRequestObject = (HttpWebRequest)System.Net.WebRequest.Create("" + FQDN + "/1/devices/tel:" + deviceId.ToString() + "/info?access_token=" + access_token.ToString());
deviceInfoRequestObject.Method = "GET";
@@ -536,7 +536,7 @@ protected void getDCCapabilities_Click(object sender, EventArgs e)
drawPanelForGetStatusResult("acwav", deserializedJsonObj.capabilities.acwav.ToString(), false);
drawPanelForGetStatusResult("acwcf", deserializedJsonObj.capabilities.acwcf.ToString(), false);
drawPanelForGetStatusResult("acwtermtype", deserializedJsonObj.capabilities.acwtermtype.ToString(), false);
- //Session["DeviceIdForWhichTokenAcquired"] = deviceId.ToString();
+ // Session["DeviceIdForWhichTokenAcquired"] = deviceId.ToString();
deviceInfoResponseStream.Close();
}
}
View
12 DC/Csharp/app1/Web.config
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
@@ -11,27 +11,27 @@
<appSettings>
<!-- This is mandatory key and value should be equal
- to DC Service registered application 'API key'
+ to DC Service registered application 'API key'
example: value="2726942c798aaaaa4bd3625d95cc7355"-->
<add key="api_key" value=""/>
<!-- This is mandatory key and value should be equal
- to DC Service registered application 'Secret key'
+ to DC Service registered application 'Secret key'
example: value="5fb012657aaa6c7d"-->
<add key="secret_key" value=""/>
<!-- This is mandatory key and value should be equal
- to DC Service registered application 'OAuth Redirect URL'
+ to DC Service registered application 'OAuth Redirect URL'
example: value="https://IIS-Server/webroot/dc/app1/Default.aspx"-->
<add key="authorize_redirect_uri" value=""/>
<!-- This is mandatory key and value should be equal
- to https://api.att.com for production environment
+ to https://api.att.com for production environment
example: value="https://api.att.com"-->
<add key="FQDN" value=""></add>
<!-- This is optional key and value should be equal
- to "DC"
+ to "DC"
example: value="DC"-->
<add key="scope" value=""/>
View
2  DC/PHP/app1/README.txt
@@ -48,7 +48,7 @@ PHP 5.2+
Apache and php configured , on most Linux systems if installed using packages this will be done automatically
Installation:
-Copy the sample application folder to apache web root folder, for example /var/www/html
+Copy the sample application folder to apache web root folder, for example /var/www/html
3. Parameters
View
4 DC/Ruby/app1/README
@@ -55,7 +55,7 @@ create and run one's own full-fledged sample applications.
- also make sure you have rest-client and json gems installed
- To install these gems open up a terminal window and invoke:
+ To install these gems open up a command-line interface window and invoke:
gem install sinatra sinatra-contrib rest-client json
@@ -97,7 +97,7 @@ create and run one's own full-fledged sample applications.
4. Running the application
- To run the application, open up a terminal window and type:
+ To run the application, open up a command-line interface window and type:
ruby ./dc.rb
View
2  DC/Ruby/app1/dc.rb
@@ -73,7 +73,7 @@ def get_device_capabilities
else
session[:dc_address] = a
session[:dc_entered_address] = params[:address]
- authorize # after a successful authorization browser will be redirected to /auth/callback and then /get-device-capabilities
+ authorize # after a successful authorization the web browser will be redirected to /auth/callback and then /get-device-capabilities
end
end
View
16 DC/Vb/app1/Default.aspx.vb
@@ -1,4 +1,4 @@
-'Licensed by AT&T under 'Software Development Kit Tools Agreement.' September 2011
+'Licensed by AT&T under 'Software Development Kit Tools Agreement.' September 2011
'TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
'Copyright 2011 AT&T Intellectual Property. All rights reserved. http://developer.att.com
'For more information contact developer.support@att.com
@@ -65,7 +65,7 @@ Partial Public Class [Default]
Session("vb_dc_session_lastTokenTakenTime") = Nothing
Session("vb_dc_session_refreshTokenExpiryTime") = Nothing
End Sub
- ' This function resets access token related variable to null
+ ' This function resets access token related variable to null
Public Sub resetTokenVariables()
access_token = Nothing
@@ -75,7 +75,7 @@ Partial Public Class [Default]
refreshTokenExpiryTime = Nothing
End Sub
- ' This function validates access token related variables and returns VALID_ACCESS_TOKEN if its valid
+ ' This function validates access token related variables and returns VALID_ACCESS_TOKEN if it is valid
' * otherwise, returns INVALID_ACCESS_TOKEN if refresh token expired or not able to read session variables
' * return REFRESH_TOKEN, if access token in expired and refresh token is valid
'
@@ -121,7 +121,7 @@ Partial Public Class [Default]
' This function get the access token based on the type parameter type values.
' * If type value is 0, access token is fetch for authorization code flow
- ' * If type value is 2, access token is fetch for authorization code floww based on the exisiting refresh token
+ ' * If type value is 2, access token is fetch for authorization code flow based on the exisiting refresh token
'
Public Function getAccessToken(ByVal type As Integer) As Boolean
@@ -214,7 +214,7 @@ Partial Public Class [Default]
Return False
End Function
- ' This funciton draws table for error response
+ ' This function draws table for error response
Private Sub drawPanelForFailure(ByVal panelParam As Panel, ByVal message As String)
Dim table As New Table()
@@ -241,8 +241,8 @@ Partial Public Class [Default]
panelParam.Controls.Add(table)
End Sub
'
- ' * This function is called when the applicaiton page is loaded into the browser.
- ' * This fucntion reads the web.config and gets the values of the attributes
+ ' * This function is called when the application page is loaded into the web browser.
+ ' * This function reads the web.config file and gets the values of the attributes
' *
'
@@ -303,7 +303,7 @@ Partial Public Class [Default]
End Try
End Sub
- 'This funciton checks the validity of string as msisdn
+ 'This function checks the validity of string as msisdn
Private Function isValidMISDN(ByVal number As String) As [Boolean]
View
12 DC/Vb/app1/Web.config
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
@@ -11,27 +11,27 @@
<appSettings>
<!-- This is mandatory key and value should be equal
- to DC Service registered application 'API key'
+ to DC Service registered application 'API key'
example: value="2726942c798aaaaa4bd3625d95cc7355"-->
<add key="api_key" value=""/>
<!-- This is mandatory key and value should be equal
- to DC Service registered application 'Secret key'
+ to DC Service registered application 'Secret key'
example: value="5fb012657aaa6c7d"-->
<add key="secret_key" value=""/>
<!-- This is mandatory key and value should be equal
- to DC Service registered application 'OAuth Redirect URL'
+ to DC Service registered application 'OAuth Redirect URL'
example: value="https://IIS-Server/webroot/dc/app1/Default.aspx"-->
<add key="authorize_redirect_uri" value=""/>
<!-- This is mandatory key and value should be equal
- to https://api.att.com for production environment
+ to https://api.att.com for production environment
example: value="https://api.att.com "-->
<add key="FQDN" value=""></add>
<!-- This is optional key and value should be equal
- to "DC"
+ to "DC"
example: value="DC"-->
<add key="scope" value=""/>
View
10 MIM/Csharp/app1/Default.aspx.cs
@@ -1,4 +1,4 @@
-// <copyright file="Default.aspx.cs" company="AT&amp;T">
+// <copyright file="Default.aspx.cs" company="AT&amp;T">
// Licensed by AT&amp;T under 'Software Development Kit Tools Agreement.' 2012
// TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
// Copyright 2012 AT&amp;T Intellectual Property. All rights reserved. http://developer.att.com
@@ -67,7 +67,7 @@ public partial class MIM_App1 : System.Web.UI.Page
#region Application Events
/// <summary>
- /// This function is called when the application page is loaded into the browser.
+ /// This function is called when the application page is loaded into the web browser.
/// </summary>
/// <param name="sender">object, that caused this event</param>
/// <param name="e">Event that invoked this function</param>
@@ -486,7 +486,7 @@ private void ResetTokenSessionVariables()
}
/// <summary>
- /// This function resets access token related variable to null
+ /// This function resets access token related variable to null
/// </summary>
private void ResetTokenVariables()
{
@@ -605,7 +605,7 @@ private bool ReadTokenSessionVariables()
/// <summary>
/// Validates access token related variables
/// </summary>
- /// <returns>string, returns VALID_ACCESS_TOKEN if its valid
+ /// <returns>string, returns VALID_ACCESS_TOKEN if it is valid
/// otherwise, returns INVALID_ACCESS_TOKEN if refresh token expired or not able to read session variables
/// return REFRESH_TOKEN, if access token in expired and refresh token is valid</returns>
private string IsTokenValid()
@@ -656,7 +656,7 @@ private void BypassCertificateError()
/// Get access token based on the type parameter type values.
/// </summary>
/// <param name="type">If type value is Authorization_code, access token is fetch for authorization code flow
- /// If type value isRefresh_Token, access token is fetch for authorization code floww based on the exisiting refresh token</param>
+ /// If type value isRefresh_Token, access token is fetch for authorization code flow based on the exisiting refresh token</param>
/// <returns>true/false; true if success, else false</returns>
private bool GetAccessToken(AccessTokenType type)
{
View
4 MIM/Csharp/app1/README.txt
@@ -69,7 +69,7 @@ order to use this sample application code.
Each sample application contains a web.config file. It holds configurable parameters
described in an easy to read format. Please populate the following parameters in
-web.config as specified below:
+web.config file as specified below:
1) api_key : This is mandatory parameter, set the value as per your
registered application 'API key' field value.
@@ -99,4 +99,4 @@ environment to 'Production' environment.
Suppose you copied the sample app files in your IIS server webroot/mim/app1/ folder.
In order to run the sample application, type in'http://IIS_HOSTNAME:8080/mim/app1/Default.aspx'
(assuming you're using a HOSTNAME machine with IIS Server and have not changed the
-default port number, otherwise adjust accordingly) on your browser.
+default port number, otherwise adjust accordingly) on your web browser.
View
4 MIM/Java/app1/MIM.jsp
@@ -11,7 +11,7 @@
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
-<title>AT&amp;T Sample Mim Application 1 - Basic Mim Service
+<title>AT&amp;T Sample MIM Application 1 - Basic MIM Service
Application</title>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" />
<link rel="stylesheet" type="text/css" href="style/common.css" />
@@ -128,7 +128,7 @@ session.setAttribute("PartNumber",PartNumber);
<div id="wrapper">
<div id="content">
- <h1>AT&amp;T Sample Mim Application 1 - Basic Mim Service
+ <h1>AT&amp;T Sample MIM Application 1 - Basic MIM Service
Application</h1>
<h2>Feature 1: Get Message Header</h2>
View
4 MIM/Ruby/app1/README
@@ -61,7 +61,7 @@ create and run one's own full-fledged sample applications.
- also make sure you have rest-client and json gems installed
- To install these gems open up a terminal window and invoke:
+ To install these gems open up a command-line interface window and invoke:
gem install sinatra sinatra-contrib rest-client json
@@ -101,7 +101,7 @@ create and run one's own full-fledged sample applications.
4. Running the application
- To run the application, open up a terminal window and type:
+ To run the application, open up a command-line interface window and type:
ruby ./mim.rb
View
4 MIM/Ruby/app1/views/mim.erb
@@ -86,7 +86,7 @@ For more information contact developer.support@att.com -->
<tbody>
<tr>
<td class="cell">
- <button type="submit" name="getMessageHeaders"> Get Message Headers </button></td>
+ <button type="submit" name="getMessageHeaders"> Get Message Headers </button></td>
</td>
</tr>
</tbody>
@@ -274,7 +274,7 @@ For more information contact developer.support@att.com -->
<tbody>
<tr>
<td class="cell">
- <button type="submit1" name="getMessageContent"> Get Message Content </button></td>
+ <button type="submit1" name="getMessageContent"> Get Message Content </button></td>
</td>
</tr>
</tbody>
View
8 MIM/Vb/app1/Default.aspx.vb
@@ -1,4 +1,4 @@
-' <copyright file="Default.aspx.vb" company="AT&amp;T">
+' <copyright file="Default.aspx.vb" company="AT&amp;T">
' Licensed by AT&amp;T under 'Software Development Kit Tools Agreement.' 2012
' TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
' Copyright 2012 AT&amp;T Intellectual Property. All rights reserved. http://developer.att.com
@@ -81,7 +81,7 @@ Partial Public Class MIM_App1
#Region "Application events"
''' <summary>
- ''' This function is called when the applicaiton page is loaded into the browser.
+ ''' This function is called when the application page is loaded into the web browser.
''' </summary>
''' <param name="sender">object, that caused this event</param>
''' <param name="e">Event that invoked this function</param>
@@ -588,7 +588,7 @@ Partial Public Class MIM_App1
End Sub
''' <summary>
- ''' This function resets access token related variable to null
+ ''' This function resets access token related variable to null
''' </summary>
Private Sub ResetTokenVariables()
Me.accessToken = Nothing
@@ -647,7 +647,7 @@ Partial Public Class MIM_App1
''' <summary>
''' Validates access token expiry times.
''' </summary>
- ''' <returns>string, returns VALID_ACCESS_TOKEN if its valid
+ ''' <returns>string, returns VALID_ACCESS_TOKEN if it is valid
''' otherwise, returns INVALID_ACCESS_TOKEN if refresh token expired or not able to read session variables
''' return REFRESH_TOKEN, if access token in expired and refresh token is valid</returns>
Private Function IsTokenValid() As String
View
4 MIM/Vb/app1/README.txt
@@ -69,7 +69,7 @@ order to use this sample application code.
Each sample application contains a web.config file. It holds configurable parameters
described in an easy to read format. Please populate the following parameters in
-web.config as specified below:
+web.config file as specified below:
1) api_key : This is mandatory parameter, set the value as per your
registered application 'API key' field value.
@@ -99,4 +99,4 @@ environment to 'Production' environment.
Suppose you copied the sample app files in your IIS server webroot/mim/app1/ folder.
In order to run the sample application, type in'http://IIS_HOSTNAME:8080/mim/app1/Default.aspx'
(assuming you're using a HOSTNAME machine with IIS Server and have not changed the
-default port number, otherwise adjust accordingly) on your browser.
+default port number, otherwise adjust accordingly) on your web browser.
View
8 MMS/Csharp/app1/Default.aspx.cs
@@ -1,4 +1,4 @@
-// <copyright file="Default.aspx.cs" company="AT&amp;T">
+// <copyright file="Default.aspx.cs" company="AT&amp;T">
// Licensed by AT&amp;T under 'Software Development Kit Tools Agreement.' 2012
// TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
// Copyright 2012 AT&amp;T Intellectual Property. All rights reserved. http://developer.att.com
@@ -89,7 +89,7 @@ public static void BypassCertificateError()
#region Page and Button Events
/// <summary>
- /// Event, that triggers when the applicaiton page is loaded into the browser, reads the web.config and gets the values of the attributes
+ /// Event, that triggers when the application page is loaded into the web browser, reads the web.config file and gets the values of the attributes
/// </summary>
/// <param name="sender">object, that caused this event</param>
/// <param name="e">Event that invoked this function</param>
@@ -271,7 +271,7 @@ private bool ReadAccessTokenFile()
/// <summary>
/// Validates he expiry of the access token and refresh token
/// </summary>
- /// <returns>string, returns VALID_ACCESS_TOKEN if its valid
+ /// <returns>string, returns VALID_ACCESS_TOKEN if it is valid
/// otherwise, returns INVALID_ACCESS_TOKEN if refresh token expired or not able to read session variables
/// return REFRESH_TOKEN, if access token in expired and refresh token is valid</returns>
private string IsTokenValid()
@@ -708,7 +708,7 @@ private string GetPhoneNumber()
}
/// <summary>
- /// This funciton initiates send mms api call to send selected files as an mms
+ /// This function initiates send mms api call to send selected files as an mms
/// </summary>
private void SendMMS()
{
View
2  MMS/Csharp/app1/README.txt
@@ -75,7 +75,7 @@ order to use this sample application code.
Each sample application contains a web.config file. It holds configurable parameters
described in an easy to read format. Please populate the following parameters in
-web.config as specified below:
+web.config file as specified below:
1) api_key : This is mandatory parameter, Set the value as per your
registered appliaction 'API key' field value.
View
8 MMS/Csharp/app1/Web.config
@@ -11,22 +11,22 @@
<appSettings>
<!-- This is mandatory key and value should be equal
- to MMS Service registered application 'API key'
+ to MMS Service registered application 'API key'
example: value="2726942c798aaaaa4bd3625d95cc7355"-->
<add key="api_key" value=""/>
<!-- This is mandatory key and value should be equal
- to MMS Service registered application 'Secret key'
+ to MMS Service registered application 'Secret key'
example: value="5fb012657aaa6c7d"-->
<add key="secret_key" value=""/>
<!-- This is mandatory key and value should be equal
- to https://api.att.com for production environment-->
+ to https://api.att.com for production environment-->
<add key="endPoint" value=""></add>
<!-- This is optional key and if you want to define, then the value should be equal
- to "MMS"
+ to "MMS"
example: value="MMS"-->
<add key="scope" value="MMS"/>
View
8 MMS/Csharp/app2/Default.aspx.cs
@@ -1,4 +1,4 @@
-// <copyright file="Default.aspx.cs" company="AT&amp;T">
+// <copyright file="Default.aspx.cs" company="AT&amp;T">
// Licensed by AT&amp;T under 'Software Development Kit Tools Agreement.' 2012
// TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
// Copyright 2012 AT&amp;T Intellectual Property. All rights reserved. http://developer.att.com
@@ -117,7 +117,7 @@ public static void BypassCertificateError()
#region Events
/// <summary>
- /// Event, that triggers when the applicaiton page is loaded into the browser, reads the web.config and gets the values of the attributes
+ /// Event, that triggers when the application page is loaded into the web browser, reads the web.config file and gets the values of the attributes
/// </summary>
/// <param name="sender">object, that caused this event</param>
/// <param name="e">Event that invoked this function</param>
@@ -175,7 +175,7 @@ protected void SendButton_Click(object sender, EventArgs e)
}
/// <summary>
- /// This method will be called when user clicks on get status button
+ /// This method will be called when user clicks on get status button
/// </summary>
/// <param name="sender">object, that caused this event</param>
/// <param name="e">Event that invoked this function</param>
@@ -326,7 +326,7 @@ private bool ReadAccessTokenFile()
/// <summary>
/// Validates he expiry of the access token and refresh token
/// </summary>
- /// <returns>string, returns VALID_ACCESS_TOKEN if its valid
+ /// <returns>string, returns VALID_ACCESS_TOKEN if it is valid
/// otherwise, returns INVALID_ACCESS_TOKEN if refresh token expired or not able to read session variables
/// return REFRESH_TOKEN, if access token in expired and refresh token is valid</returns>
private string IsTokenValid()
View
2  MMS/Csharp/app2/README.txt
@@ -77,7 +77,7 @@ to use this sample application code.
Each sample application contains a web.config file. It holds configurable parameters
described in an easy to read format. Please populate the following parameters in
-web.config as specified below:
+web.config file as specified below:
1) api_key : This is mandatory parameter, Set the value as per your
registered appliaction 'API key' field value.
View
10 MMS/Csharp/app2/Web.config
@@ -11,28 +11,28 @@
<appSettings>
<!-- This is mandatory key and value should be equal
- to MMS Service registered application 'API key'
+ to MMS Service registered application 'API key'
example: value="46257ab0180b092b6767f7acffc584ee"-->
<add key="api_key" value=""/>
<!-- This is mandatory key and value should be equal
- to MMS Service registered application 'Secret key'
+ to MMS Service registered application 'Secret key'
example: value="006bef45f8657d1b"-->
<add key="secret_key" value=""/>
<!-- This is mandatory key and value should be equal
- to MMS Service registered application 'short code'
+ to MMS Service registered application 'short code'
example: value="80750000" -->
<add key="short_code" value=""/>
<!-- This is mandatory key and value should be equal
- to https://api.att.com for production environment or
+ to https://api.att.com for production environment or
https://api-uat.san1.attcompute.com for uat environment
example: value="https://api-uat.san1.attcompute.com"-->
<add key="endPoint" value=""></add>
<!-- This is optional key and if you want to define, then the value should be equal
- to "MMS"
+ to "MMS"
example: value="MMS"-->
<add key="scope" value=""/>
View
2  MMS/Csharp/app3/Default.aspx.cs
@@ -33,7 +33,7 @@ public partial class MMS_App3 : System.Web.UI.Page
private int numOfFilesToDisplay;
/// <summary>
- /// Event, that triggers when the applicaiton page is loaded into the browser, reads the web.config and gets the values of the attributes
+ /// Event, that triggers when the application page is loaded into the web browser, reads the web.config file and gets the values of the attributes
/// </summary>
/// <param name="sender">object, that caused this event</param>
/// <param name="e">Event that invoked this function</param>
View
2  MMS/Csharp/app3/Listener.aspx.cs
@@ -22,7 +22,7 @@
public partial class MMSApp3_Listener : System.Web.UI.Page
{
/// <summary>
- /// Event, that triggers when the applicaiton page is loaded into the browser
+ /// Event, that triggers when the application page is loaded into the web browser
/// Listens to server and stores the mms messages in server
/// </summary>
/// <param name="sender">object, that caused this event</param>
View
2  MMS/Csharp/app3/README.txt
@@ -70,7 +70,7 @@ to use this sample application code. Select MO and provide the listener url.
Each sample application contains a web.config file. It holds configurable parameters
described in an easy to read format. Please populate the following parameters in
-web.config as specified below:
+web.config file as specified below:
1) short_code : This is Manadatory parameter. set the value as per your
registered application 'short code' field value.
View
2  MMS/Csharp/app3/Web.config
@@ -11,7 +11,7 @@
<appSettings>
<!-- This is mandatory key and value should be equal
- to MMS Service registered application 'short code'
+ to MMS Service registered application 'short code'
example: value="807126789" -->
<add key="short_code" value=""/>
View
6 MMS/Java/app1/MMS.jsp
@@ -8,8 +8,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
-<title>AT&amp;T Sample MMS Application 1 - Basic SMS Service
- Application</title>
+<title>AT&amp;T Sample MMS Application 1 - Basic SMS Service Application</title>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<link rel="stylesheet" type="text/css" href="style/common.css"/ >
<script type="text/javascript" src="js/helper.js">
@@ -123,8 +122,7 @@ try{
<div id="wrapper">
<div id="content">
- <h1>AT&amp;T Sample MMS Application 1 - Basic MMS Service
- Application</h1>
+ <h1>AT&amp;T Sample MMS Application 1 - Basic MMS Service Application</h1>
<h2>Feature 1: Send MMS Message</h2>
</div>
View
2  MMS/PHP/app2/README.txt
@@ -52,7 +52,7 @@ PHP 5.2+
Apache and php configured , on most Linux systems if installed using packages this will be done automatically
Installation:
-Copy the sample application folder to apache web root folder, for example /var/www/html
+Copy the sample application folder to apache web root folder, for example /var/www/html
3. Parameters
View
4 MMS/Ruby/app1/README
@@ -60,7 +60,7 @@ create and run one's own full-fledged sample applications.
- also make sure you have rest-client and json gems installed
- To install these gems open up a terminal window and invoke:
+ To install these gems open up a command-line interface window and invoke:
gem install sinatra sinatra-contrib rest-client json
@@ -103,7 +103,7 @@ create and run one's own full-fledged sample applications.
4. Running the application
- To run the application, open up a terminal window and type:
+ To run the application, open up a command-line interface window and type:
ruby ./mms.rb
View
4 MMS/Ruby/app2/README
@@ -60,7 +60,7 @@ create and run one's own full-fledged sample applications.
- also make sure you have rest-client and json gems installed
- To install these gems open up a terminal window and invoke:
+ To install these gems open up a command-line interface window and invoke:
gem install sinatra sinatra-contrib rest-client json
@@ -105,7 +105,7 @@ create and run one's own full-fledged sample applications.
4. Running the application
- To run the application, open up a terminal window and type:
+ To run the application, open up a command-line interface window and type:
ruby ./mms2.rb
View
6 MMS/Ruby/app3/README
@@ -60,7 +60,7 @@ create and run one's own full-fledged sample applications.
- also make sure you have rest-client and json gems installed
- To install these gems open up a terminal window and invoke:
+ To install these gems open up a command-line interface window and invoke:
gem install sinatra sinatra-contrib rest-client json
@@ -99,7 +99,7 @@ create and run one's own full-fledged sample applications.
8) momms_data_dir : directory for MMS description files
- 9) momms_image_dir : directory for MMS image files (needs to be available from browser)
+ 9) momms_image_dir : directory for MMS image files (needs to be available from web browser)
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.
@@ -107,7 +107,7 @@ create and run one's own full-fledged sample applications.
4. Running the application
- To run the application, open up a terminal window and type:
+ To run the application, open up a command-line interface window and type:
ruby ./mms3.rb
View
8 MMS/Vb/app1/Default.aspx.vb
@@ -1,4 +1,4 @@
-' <copyright file="Default.aspx.vb" company="AT&amp;T">
+' <copyright file="Default.aspx.vb" company="AT&amp;T">
' Licensed by AT&amp;T under 'Software Development Kit Tools Agreement.' 2012
' TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
' Copyright 2012 AT&amp;T Intellectual Property. All rights reserved. http://developer.att.com
@@ -89,7 +89,7 @@ Partial Public Class MMS_App1
#Region "Page and Button Events"
''' <summary>
- ''' Event, that triggers when the applicaiton page is loaded into the browser, reads the web.config and gets the values of the attributes
+ ''' Event, that triggers when the application page is loaded into the web browser, reads the web.config file and gets the values of the attributes
''' </summary>
''' <param name="sender">object, that caused this event</param>
''' <param name="e">Event that invoked this function</param>
@@ -236,7 +236,7 @@ Partial Public Class MMS_App1
''' <summary>
''' Validates he expiry of the access token and refresh token
''' </summary>
- ''' <returns>string, returns VALID_ACCESS_TOKEN if its valid
+ ''' <returns>string, returns VALID_ACCESS_TOKEN if it is valid
''' otherwise, returns INVALID_ACCESS_TOKEN if refresh token expired or not able to read session variables
''' return REFRESH_TOKEN, if access token in expired and refresh token is valid</returns>
Private Function IsTokenValid() As String
@@ -602,7 +602,7 @@ Partial Public Class MMS_App1
End Function
''' <summary>
- ''' This funciton initiates send mms api call to send selected files as an mms
+ ''' This function initiates send mms api call to send selected files as an mms
''' </summary>
Private Sub SendMMS()
Try
View
2  MMS/Vb/app1/README.txt
@@ -75,7 +75,7 @@ order to use this sample application code.
Each sample application contains a web.config file. It holds configurable parameters
described in an easy to read format. Please populate the following parameters in
-web.config as specified below:
+web.config file as specified below:
1) api_key : This is mandatory parameter, Set the value as per your
registered appliaction 'API key' field value.
View
8 MMS/Vb/app1/Web.config
@@ -11,24 +11,24 @@
<appSettings>
<!-- This is mandatory key and value should be equal
- to MMS Service registered application 'API key'
+ to MMS Service registered application 'API key'
example: value="2726942c798aaaaa4bd3625d95cc7355"-->
<add key="api_key" value=""/>
<!-- This is mandatory key and value should be equal
- to MMS Service registered application 'Secret key'
+ to MMS Service registered application 'Secret key'
example: value="5fb012657aaa6c7d"-->
<add key="secret_key" value=""/>
<!-- This is mandatory key and value should be equal
- to https://api.att.com for production environment or
+ to https://api.att.com for production environment or
https://api-uat.san1.attcompute.com for uat environment
example: value="https://api-uat.san1.attcompute.com"-->
<add key="endPoint" value=""></add>
<!-- This is optional key and if you want to define, then the value should be equal
- to "MMS"
+ to "MMS"
example: value="MMS"-->
<add key="scope" value=""/>
View
8 MMS/Vb/app2/Default.aspx.vb
@@ -1,4 +1,4 @@
-' <copyright file="Default.aspx.vb" company="AT&amp;T">
+' <copyright file="Default.aspx.vb" company="AT&amp;T">
' Licensed by AT&amp;T under 'Software Development Kit Tools Agreement.' 2012
' TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
' Copyright 2012 AT&amp;T Intellectual Property. All rights reserved. http://developer.att.com
@@ -117,7 +117,7 @@ Partial Public Class MMS_App2
#Region "Events"
''' <summary>
- ''' Event, that triggers when the applicaiton page is loaded into the browser, reads the web.config and gets the values of the attributes
+ ''' Event, that triggers when the application page is loaded into the web browser, reads the web.config file and gets the values of the attributes
''' </summary>
''' <param name="sender">object, that caused this event</param>
''' <param name="e">Event that invoked this function</param>
@@ -164,7 +164,7 @@ Partial Public Class MMS_App2
End Sub
''' <summary>
- ''' This method will be called when user clicks on get status button
+ ''' This method will be called when user clicks on get status button
''' </summary>
''' <param name="sender">object, that caused this event</param>
''' <param name="e">Event that invoked this function</param>
@@ -285,7 +285,7 @@ Partial Public Class MMS_App2
''' <summary>
''' Validates he expiry of the access token and refresh token
''' </summary>
- ''' <returns>string, returns VALID_ACCESS_TOKEN if its valid
+ ''' <returns>string, returns VALID_ACCESS_TOKEN if it is valid
''' otherwise, returns INVALID_ACCESS_TOKEN if refresh token expired or not able to read session variables
''' return REFRESH_TOKEN, if access token in expired and refresh token is valid</returns>
Private Function IsTokenValid() As String
View
2  MMS/Vb/app2/README.txt
@@ -77,7 +77,7 @@ to use this sample application code.
Each sample application contains a web.config file. It holds configurable parameters
described in an easy to read format. Please populate the following parameters in
-web.config as specified below:
+web.config file as specified below:
1) api_key : This is mandatory parameter, Set the value as per your
registered appliaction 'API key' field value.
View
10 MMS/Vb/app2/Web.config
@@ -11,28 +11,28 @@
<appSettings>
<!-- This is mandatory key and value should be equal
- to MMS Service registered application 'API key'
+ to MMS Service registered application 'API key'
example: value="46257ab0180b092byy976767f7acffc584ee"-->
<add key="api_key" value=""/>
<!-- This is mandatory key and value should be equal
- to MMS Service registered application 'Secret key'
+ to MMS Service registered application 'Secret key'
example: value="006bef46545f8657d1b"-->
<add key="secret_key" value=""/>
<!-- This is mandatory key and value should be equal
- to MMS Service registered application 'short code'
+ to MMS Service registered application 'short code'
example: value="807560000" -->
<add key="short_code" value=""/>
<!-- This is mandatory key and value should be equal
- to https://api.att.com for production environment or
+ to https://api.att.com for production environment or
https://api-uat.san1.attcompute.com for uat environment
example: value="https://api-uat.san1.attcompute.com"-->
<add key="endPoint" value=""></add>
<!-- This is optional key and if you want to define, then the value should be equal
- to "MMS"
+ to "MMS"
example: value="MMS"-->
<add key="scope" value=""/>
View
4 MMS/Vb/app3/Default.aspx.vb
@@ -1,4 +1,4 @@
-' <copyright file="Default.aspx.vb" company="AT&amp;T">
+' <copyright file="Default.aspx.vb" company="AT&amp;T">
' Licensed by AT&amp;T under 'Software Development Kit Tools Agreement.' 2012
' TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
' Copyright 2012 AT&amp;T Intellectual Property. All rights reserved. http://developer.att.com
@@ -32,7 +32,7 @@ Partial Public Class MMS_App3
Private numOfFilesToDisplay As Integer
''' <summary>
- ''' Event, that triggers when the applicaiton page is loaded into the browser, reads the web.config and gets the values of the attributes
+ ''' Event, that triggers when the application page is loaded into the web browser, reads the web.config file and gets the values of the attributes
''' </summary>
''' <param name="sender">object, that caused this event</param>
''' <param name="e">Event that invoked this function</param>
View
4 MMS/Vb/app3/Listener.aspx.vb
@@ -1,4 +1,4 @@
-' <copyright file="Default.aspx.vb" company="AT&amp;T">
+' <copyright file="Default.aspx.vb" company="AT&amp;T">
' Licensed by AT&amp;T under 'Software Development Kit Tools Agreement.' 2012
' TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
' Copyright 2012 AT&amp;T Intellectual Property. All rights reserved. http://developer.att.com
@@ -19,7 +19,7 @@ Imports System.Text
Partial Public Class MMSApp3_Listener
Inherits System.Web.UI.Page
''' <summary>
- ''' Event, that triggers when the applicaiton page is loaded into the browser
+ ''' Event, that triggers when the application page is loaded into the web web browser
''' Listens to server and stores the mms messages in server
''' </summary>
''' <param name="sender">object, that caused this event</param>
View
2  MMS/Vb/app3/README.txt
@@ -70,7 +70,7 @@ to use this sample application code. Select MO and provide the listener url.
Each sample application contains a web.config file. It holds configurable parameters
described in an easy to read format. Please populate the following parameters in
-web.config as specified below:
+web.config file as specified below:
1) short_code : This is Manadatory parameter. set the value as per your
registered application 'short code' field value.
View
2  MMS/Vb/app3/Web.config
@@ -11,7 +11,7 @@
<appSettings>
<!-- This is mandatory key and value should be equal
- to MMS Service registered application 'short code'
+ to MMS Service registered application 'short code'
example: value="80750000" -->
<add key="short_code" value=""/>
View
8 MOBO/Csharp/app1/Default.aspx
@@ -1,4 +1,4 @@
-<!--
+<!--
Licensed by AT&T under 'Software Development Kit Tools Agreement.' 2012
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
Copyright 2012 AT&T Intellectual Property. All rights reserved. http://developer.att.com
@@ -50,10 +50,8 @@ For more information contact developer.support@att.com
<!-- close HEADER -->
<div>
<div class="content">
- <h1>
- AT&amp;T Sample Mobo Application 1 - Basic Mobo Service Application</h1>
- <h2>
- Feature 1: Send Message</h2>
+ <h1>AT&amp;T Sample IMMN Application 1 - Basic IMMN Service Application</h1>
+ <h2>Feature 1: Send Message</h2>
</div>
</div>
<br />
View
12 MOBO/Csharp/app1/Default.aspx.cs
@@ -1,4 +1,4 @@
-// <copyright file="Default.aspx.cs" company="AT&amp;T">
+// <copyright file="Default.aspx.cs" company="AT&amp;T">
// Licensed by AT&amp;T under 'Software Development Kit Tools Agreement.' 2012
// TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
// Copyright 2012 AT&amp;T Intellectual Property. All rights reserved. http://developer.att.com
@@ -82,8 +82,8 @@ public partial class Mobo_App1 : System.Web.UI.Page
#region Application events
/// <summary>
- /// This function is called when the applicaiton page is loaded into the browser.
- /// This function reads the web.config and gets the values of the attributes
+ /// This function is called when the application page is loaded into the web browser.
+ /// This function reads the web.config file and gets the values of the attributes
/// </summary>
/// <param name="sender">Button that caused this event</param>
/// <param name="e">Event that invoked this function</param>
@@ -893,7 +893,7 @@ private void ResetTokenSessionVariables()
}
/// <summary>
- /// This function resets access token related variable to null
+ /// This function resets access token related variable to null
/// </summary>
private void ResetTokenVariables()
{
@@ -971,7 +971,7 @@ private bool ReadTokenSessionVariables()
/// <summary>
/// Validates access token related variables
/// </summary>
- /// <returns>string, returns VALID_ACCESS_TOKEN if its valid
+ /// <returns>string, returns VALID_ACCESS_TOKEN if it is valid
/// otherwise, returns INVALID_ACCESS_TOKEN if refresh token expired or not able to read session variables
/// return REFRESH_TOKEN, if access token in expired and refresh token is valid</returns>
private string IsTokenValid()
@@ -1022,7 +1022,7 @@ private void BypassCertificateError()
/// Get access token based on the type parameter type values.
/// </summary>
/// <param name="type">If type value is 0, access token is fetch for authorization code flow
- /// If type value is 2, access token is fetch for authorization code floww based on the exisiting refresh token</param>
+ /// If type value is 2, access token is fetch for authorization code flow based on the exisiting refresh token</param>
/// <returns>true/false; true if success, else false</returns>
private bool GetAccessToken(AccessTokenType type)
{
View
8 MOBO/Csharp/app1/README.txt
@@ -4,11 +4,11 @@
* For more information contact developer.support@att.com<mailto:developer.support@att.com>
******************************************************************************************
- AT&T API Samples - MOBO app 1
+ AT&T API Samples - IMMN app 1
--------------------------------
This application allows the user to send SMS and MMS on behalf of subscriber,
-with subscriber�s consent, using the MOBO API.
+with subscriber�s consent, using the IMMN API.
This file describes how to set up, configure and run the C# Applications of the
AT&T API Platform Restful sample applications.
@@ -69,7 +69,7 @@ order to use this sample application code.
Each sample application contains a web.config file. It holds configurable parameters
described in an easy to read format. Please populate the following parameters in
-web.config as specified below:
+web.config file as specified below:
1) api_key : This is mandatory parameter, set the value as per your
registered application 'API key' field value.
@@ -103,4 +103,4 @@ environment to 'Production' environment.
Suppose you copied the sample app files in your IIS server webroot/mobo/app1/ folder.
In order to run the sample application, type in'http://IIS_HOSTNAME:8080/mobo/app1/Default.aspx'
(assuming you're using a HOSTNAME machine with IIS Server and have not changed the
-default port number, otherwise adjust accordingly) on your browser.
+default port number, otherwise adjust accordingly) on your web browser.
View
2  MOBO/Java/app1/MOBO.jsp
@@ -8,7 +8,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
-<title>AT&T Sample Mobo Application 1 - Basic Mobo Service
+<title>AT&T Sample IMMN Application 1 - Basic IMMN Service
Application</title>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" />
<link rel="stylesheet" type="text/css" href="style/common.css" />
View
2  MOBO/Java/app1/README.txt
@@ -5,7 +5,7 @@
//For more information contact developer.support@att.com
%>
- AT&T API Platform Samples - MOBO app 1
+ AT&T API Platform Samples - IMMN app 1
------------------------------
This file describes how to set-up, configure and run the Java Applications using AT&T API Platform services.
View
4 MOBO/PHP/app1/README.txt
@@ -4,11 +4,11 @@
* For more information contact developer.support@att.com<mailto:developer.support@att.com>
******************************************************************************************
- AT&T API Platform Samples - MOBO app 1
+ AT&T API Platform Samples - IMMN app 1
--------------------------------
This application allows the user to send SMS and MMS on behalf of subscriber,
-with subscriber�s consent, using the MOBO API.
+with subscriber�s consent, using the IMMN API.
This file describes how to set up, configure and run the PHP Applications of the
AT&T API Platform Restful sample applications.
View
6 MOBO/Ruby/app1/README
@@ -5,7 +5,7 @@
* For more information contact developer.support@att.com<mailto:developer.support@att.com>
******************************************************************************************
- AT&T API Platform Samples - MOBO App 1
+ AT&T API Platform Samples - IMMN App 1
--------------------------------------
This file describes how to set up, configure and run the Ruby applications using AT&T API Platform services.
@@ -61,7 +61,7 @@ create and run one's own full-fledged sample applications.
- also make sure you have rest-client and json gems installed
- To install these gems open up a terminal window and invoke:
+ To install these gems open up a command-line interface window and invoke:
gem install sinatra sinatra-contrib rest-client json
@@ -101,7 +101,7 @@ create and run one's own full-fledged sample applications.
4. Running the application
- To run the application, open up a terminal window and type:
+ To run the application, open up a command-line interface window and type:
ruby ./mobo.rb
View
4 MOBO/Ruby/app1/views/mobo.erb
@@ -7,7 +7,7 @@ For more information contact developer.support@att.com -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
- <title>AT&T Sample Mobo Application 1 - Basic Mobo Service Application</title>
+ <title>AT&T Sample IMMN Application 1 - Basic IMMN Service Application</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<link rel="stylesheet" type="text/css" href="style/common.css"/>
</head>
@@ -48,7 +48,7 @@ For more information contact developer.support@att.com -->
<div>
<div id="content">
- <h1>AT&T Sample Mobo Application 1 - Basic Mobo Service Application</h1>
+ <h1>AT&T Sample IMMN Application 1 - Basic IMMN Service Application</h1>
<h2>Feature 1: Send Message</h2>
</div>
View
8 MOBO/Vb/app1/Default.aspx
@@ -1,4 +1,4 @@
-<!--
+<!--
Licensed by AT&T under 'Software Development Kit Tools Agreement.' 2012
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
Copyright 2012 AT&T Intellectual Property. All rights reserved. http://developer.att.com
@@ -51,10 +51,8 @@ For more information contact developer.support@att.com
<!-- close HEADER -->
<div>
<div class="content">
- <h1>
- AT&amp;T Sample Mobo Application 1 - Basic Mobo Service Application</h1>
- <h2>
- Feature 1: Send Message</h2>
+ <h1>AT&amp;T Sample Mobo Application 1 - Basic IMMN Service Application</h1>
+ <h2>Feature 1: Send Message</h2>
</div>
</div>
<br />
View
12 MOBO/Vb/app1/Default.aspx.vb
@@ -1,4 +1,4 @@
-' <copyright file="Default.aspx.vb" company="AT&amp;T">
+' <copyright file="Default.aspx.vb" company="AT&amp;T">
' Licensed by AT&amp;T under 'Software Development Kit Tools Agreement.' 2012
' TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
' Copyright 2012 AT&amp;T Intellectual Property. All rights reserved. http://developer.att.com
@@ -73,8 +73,8 @@ Partial Public Class Mobo_App1
Private refreshTokenExpiresIn As Integer
''' <summary>
- ''' This function is called when the applicaiton page is loaded into the browser.
- ''' This function reads the web.config and gets the values of the attributes
+ ''' This function is called when the application page is loaded into the web browser.
+ ''' This function reads the web.config file and gets the values of the attributes
''' </summary>
''' <param name="sender">Button that caused this event</param>
''' <param name="e">Event that invoked this function</param>
@@ -549,7 +549,7 @@ Partial Public Class Mobo_App1
End Sub
''' <summary>
- ''' This function resets access token related variable to null
+ ''' This function resets access token related variable to null
''' </summary>
Private Sub ResetTokenVariables()
Me.accessToken = Nothing
@@ -609,7 +609,7 @@ Partial Public Class Mobo_App1
''' <summary>
''' Validates access token related variables
''' </summary>
- ''' <returns>string, returns VALID_ACCESS_TOKEN if its valid
+ ''' <returns>string, returns VALID_ACCESS_TOKEN if it is valid
''' otherwise, returns INVALID_ACCESS_TOKEN if refresh token expired or not able to read session variables
''' return REFRESH_TOKEN, if access token in expired and refresh token is valid</returns>
Private Function IsTokenValid() As String
@@ -649,7 +649,7 @@ Partial Public Class Mobo_App1
''' Get access token based on the type parameter type values.
''' </summary>
''' <param name="type">If type value is 0, access token is fetch for authorization code flow
- ''' If type value is 2, access token is fetch for authorization code floww based on the exisiting refresh token</param>
+ ''' If type value is 2, access token is fetch for authorization code flow based on the exisiting refresh token</param>
''' <returns>true/false; true if success, else false</returns>
Private Function GetAccessToken(ByVal type As AccessTokenType) As Boolean
Dim postStream As Stream = Nothing
View
8 MOBO/Vb/app1/README.txt
@@ -4,11 +4,11 @@
* For more information contact developer.support@att.com<mailto:developer.support@att.com>
******************************************************************************************
- AT&T API Samples - MOBO app 1
+ AT&T API Samples - IMMN app 1
--------------------------------
This application allows the user to send SMS and MMS on behalf of subscriber,
-with subscriber�s consent, using the MOBO API.
+with subscriber�s consent, using the IMMN API.
This file describes how to set up, configure and run the VB.NET Applications of the
AT&T API Platform Restful sample applications.
@@ -69,7 +69,7 @@ order to use this sample application code.
Each sample application contains a web.config file. It holds configurable parameters
described in an easy to read format. Please populate the following parameters in
-web.config as specified below:
+web.config file as specified below:
1) api_key : This is mandatory parameter, set the value as per your
registered application 'API key' field value.
@@ -103,4 +103,4 @@ environment to 'Production' environment.
Suppose you copied the sample app files in your IIS server webroot/mobo/app1/ folder.
In order to run the sample application, type in'http://IIS_HOSTNAME:8080/mobo/app1/Default.aspx'
(assuming you're using a HOSTNAME machine with IIS Server and have not changed the
-default port number, otherwise adjust accordingly) on your browser.
+default port number, otherwise adjust accordingly) on your web browser.
View
6 Notary/Csharp/app1/Default.aspx.cs
@@ -1,4 +1,4 @@
-// <copyright file="Default.aspx.cs" company="AT&amp;T">
+// <copyright file="Default.aspx.cs" company="AT&amp;T">
// Licensed by AT&amp;T under 'Software Development Kit Tools Agreement.' 2012
// TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
// Copyright 2012 AT&amp;T Intellectual Property. All rights reserved. http://developer.att.com
@@ -208,7 +208,7 @@ protected void Page_Load(object sender, EventArgs e)
readTransactionParametersFromConfigurationFile();
string payLoadString = "{'Amount':'" + amount.ToString() + "','Category':'" + category.ToString() + "','Channel':'" + channel.ToString() + "','Description':'" + description.ToString() + "','MerchantTransactionId':'"
+ merchantTransactionId.ToString() + "','MerchantProductId':'" + merchantProductId.ToString()
- + "','MerchantApplicaitonId':'" + merchantApplicationId.ToString() + "','MerchantPaymentRedirectUrl':'"
+ + "','MerchantApplicationId':'" + merchantApplicationId.ToString() + "','MerchantPaymentRedirectUrl':'"
+ merchantRedirectURI.ToString() + "'}";
requestText.Text = payLoadString.ToString();
}
@@ -216,7 +216,7 @@ protected void Page_Load(object sender, EventArgs e)
{
readTransactionParametersFromConfigurationFile();
readSubscriptionParametersFromConfigurationFile();
- //string payLoadString = "{'Amount':'" + amount.ToString() + "','Category':'" + category.ToString() + "','Channel':'" + channel.ToString() + "','Description':'" + description.ToString() + "','MerchantTransactionId':'" + merchantTransactionId.ToString() + "','MerchantProductId':'" + merchantProductId.ToString() + "','MerchantApplicaitonId':'" + merchantApplicationId.ToString() + "','MerchantPaymentRedirectUrl':'" + merchantRedirectURI.ToString() + "','MerchantSubscriptionIdList':'" + MerchantSubscriptionIdList.ToString() + "','IsPurchaseOnNoActiveSubscription':'" + IsPurchaseOnNoActiveSubscription.ToString() + "','SubscriptionRecurringNumber':'" + SubscriptionRecurringNumber.ToString() + "','SubscriptionRecurringPeriod':'" + SubscriptionRecurringPeriod.ToString() + "','SubscriptionRecurringPeriodAmount':'" + SubscriptionRecurringPeriodAmount.ToString() + "'}";
+ //string payLoadString = "{'Amount':'" + amount.ToString() + "','Category':'" + category.ToString() + "','Channel':'" + channel.ToString() + "','Description':'" + description.ToString() + "','MerchantTransactionId':'" + merchantTransactionId.ToString() + "','MerchantProductId':'" + merchantProductId.ToString() + "','MerchantApplicationId':'" + merchantApplicationId.ToString() + "','MerchantPaymentRedirectUrl':'" + merchantRedirectURI.ToString() + "','MerchantSubscriptionIdList':'" + MerchantSubscriptionIdList.ToString() + "','IsPurchaseOnNoActiveSubscription':'" + IsPurchaseOnNoActiveSubscription.ToString() + "','SubscriptionRecurringNumber':'" + SubscriptionRecurringNumber.ToString() + "','SubscriptionRecurringPeriod':'" + SubscriptionRecurringPeriod.ToString() + "','SubscriptionRecurringPeriodAmount':'" + SubscriptionRecurringPeriodAmount.ToString() + "'}";
string payLoadString = "{'Amount':'" + amount.ToString() + "','Category':'" + category.ToString() + "','Channel':'" + channel.ToString() + "','Description':'" + description.ToString() + "','MerchantTransactionId':'" + merchantTransactionId.ToString() + "','MerchantProductId':'" + merchantProductId.ToString() + "','MerchantPaymentRedirectUrl':'" + merchantRedirectURI.ToString() + "','MerchantSubscriptionIdList':'" + MerchantSubscriptionIdList.ToString() + "','IsPurchaseOnNoActiveSubscription':'" + IsPurchaseOnNoActiveSubscription.ToString() + "','SubscriptionRecurrences':'" + SubscriptionRecurringNumber.ToString() + "','SubscriptionPeriod':'" + SubscriptionRecurringPeriod.ToString() + "','SubscriptionPeriodAmount':'" + SubscriptionRecurringPeriodAmount.ToString() + "'}";
//Response.Write(payLoadString);
requestText.Text = payLoadString.ToString();
View
2  Notary/Csharp/app1/README.txt
@@ -77,7 +77,7 @@ order to use this sample application code.
Each sample application contains a web.config file. It holds configurable parameters
described in an easy to read format. Please populate the following parameters in
-web.config as specified below:
+web.config file as specified below:
1) api_key : This is mandatory parameter, Set the value
as per your registered appliaction 'API key'
View
8 Notary/Csharp/app1/Web.config
@@ -11,23 +11,23 @@
</system.web>
<appSettings>
<!-- This is mandatory key and value should be equal
- to PAYMENT Service registered application 'API key'
+ to PAYMENT Service registered application 'API key'
example: value="6747238512dbc1874cd0fidaa89628c95"-->
<add key="api_key" value=""/>
<!-- This is mandatory key and value should be equal
- to PAYMENT Service registered application 'Secret key'
+ to PAYMENT Service registered application 'Secret key'
example: value="c9c45219cc8ye6b01"-->
<add key="secret_key" value=""/>
<!-- This is mandatory key and value should be equal
- to https://api.att.com for production environment or
+ to https://api.att.com for production environment or
https://api-uat.san1.attcompute.com for uat environment
example: value="https://api-uat.san1.attcompute.com"-->
<add key="FQDN" value=""></add>
<!-- This is optional key and value should be equal
- to "PAYMENT"
+ to "PAYMENT"
example: value="PAYMENT"-->
<add key="scope" value=""/>
View
2  Notary/Java/app1/notary.jsp
@@ -142,7 +142,7 @@ Feature 1: Sign Payload</h2>
<td class="cell" ><textarea rows="20" cols="60" name="payload" ><%=payload.replaceAll(",", ",\n")%></textarea>
</td>
<td width="50px"></td>
- <td valign="top" class="label">Signed Payload:</td>
+ <td valign="top" class="label">Signed Payload:</td>
<td class="cell" width="400px"><%=signedPayload.replaceAll("(.{5})", "$1 ")%></td>
</tr>
<tr>
View
12 Notary/PHP/app1/index.php
@@ -1,4 +1,4 @@
-<!--
+<!--
Licensed by AT&T under 'Software Development Kit Tools Agreement.' 2012
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
Copyright 2012 AT&T Intellectual Property. All rights reserved. http://developer.att.com
@@ -22,7 +22,7 @@
word-wrap: break-word; /* IE 5+ */
}
</style>
-<?php header("Content-Type: text/html; charset=ISO-8859-1");
+<?php header("Content-Type: text/html; charset=ISO-8859-1");
session_start();
include ("config.php");
?>
@@ -108,9 +108,9 @@
curl_setopt($request, CURLOPT_POSTFIELDS, $payload);
$response = curl_exec($request);
-
+
$responseCode=curl_getinfo($request,CURLINFO_HTTP_CODE);
-
+
if($responseCode==200) {
$jsonResponse = json_decode($response);
$signedPayload = $jsonResponse->{"SignedDocument"};
@@ -140,7 +140,7 @@
<table border="0" width="950px">
<tbody>
<tr>
-<?php
+<?php
$split = str_split($signedPayload,5);
$formattedSignedPayload ="";
foreach ( $split as $line ){
@@ -157,7 +157,7 @@
<td class="cell" ><textarea rows="20" cols="60" name="payload" ><?php echo str_replace(",\n",",",$payload) ?></textarea>
</td>
<td width="50px"></td>
- <td valign="top" class="label">Signed Payload:</td><?php if($signPayload!=null) {?>
+ <td valign="top" class="label">Signed Payload:</td><?php if($signPayload!=null) {?>
<td class="cell" width="400px" ><?php echo $formattedSignedPayload; } ?></td>
</tr>
<tr>
View
4 Notary/Ruby/app1/README
@@ -58,7 +58,7 @@ create and run one's own full-fledged sample applications.
- also make sure you have rest-client and json gems installed
- To install these gems open up a terminal window and invoke:
+ To install these gems open up a command-line interface window and invoke:
gem install sinatra sinatra-contrib rest-client json
@@ -97,7 +97,7 @@ create and run one's own full-fledged sample applications.
4. Running the application
- To run the application, open up a terminal window and type:
+ To run the application, open up a command-line interface window and type:
ruby ./app1.rb
View
2  Notary/Ruby/app1/views/notary.erb
@@ -69,7 +69,7 @@ For more information contact developer.support@att.com -->
<td class="cell" ><textarea rows="20" cols="60" name="payload" ><%= settings.notary_payload %></textarea>
</td>
<td width="50px"></td>
- <td valign="top" class="label">Signed Payload:</td>
+ <td valign="top" class="label">Signed Payload:</td>
<td class="cell" width="400px" ><%= settings.notary_result[:signed_payload] %></td>
</tr>
<tr>
View
3  Notary/Vb/app1/Default.aspx
@@ -48,8 +48,7 @@ For more information contact developer.support@att.com
<!-- close HEADER -->
<div class="wrapper">
<div class="content">
- <h1>
- A&amp;T Sample Notary Application - Sign Payload Application</h1>
+ <h1>AT&amp;T Sample Notary Application - Sign Payload Application</h1>
</div>
</div>
<div class="wrapper">
View
6 Notary/Vb/app1/Default.aspx.vb
@@ -1,4 +1,4 @@
-' <copyright file="Default.aspx.vb" company="AT&amp;T">
+' <copyright file="Default.aspx.vb" company="AT&amp;T">
' Licensed by AT&amp;T under 'Software Development Kit Tools Agreement.' 2012
' TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
' Copyright 2012 AT&amp;T Intellectual Property. All rights reserved. http://developer.att.com
@@ -165,12 +165,12 @@ Partial Public Class _Default
paymentType = ConfigurationManager.AppSettings("paymentType")
If paymentType.Equals("Transaction", StringComparison.OrdinalIgnoreCase) Then
readTransactionParametersFromConfigurationFile()
- Dim payLoadString As String = "{'Amount':'" & amount.ToString() & "','Category':'" & category.ToString() & "','Channel':'" & channel.ToString() & "','Description':'" & description.ToString() & "','MerchantTransactionId':'" & merchantTransactionId.ToString() & "','MerchantProductId':'" & merchantProductId.ToString() & "','MerchantApplicaitonId':'" & merchantApplicationId.ToString() & "','MerchantPaymentRedirectUrl':'" & merchantRedirectURI.ToString() & "'}"
+ Dim payLoadString As String = "{'Amount':'" & amount.ToString() & "','Category':'" & category.ToString() & "','Channel':'" & channel.ToString() & "','Description':'" & description.ToString() & "','MerchantTransactionId':'" & merchantTransactionId.ToString() & "','MerchantProductId':'" & merchantProductId.ToString() & "','MerchantApplicationId':'" & merchantApplicationId.ToString() & "','MerchantPaymentRedirectUrl':'" & merchantRedirectURI.ToString() & "'}"
requestText.Text = payLoadString.ToString()
ElseIf paymentType.Equals("Subscription", StringComparison.OrdinalIgnoreCase) Then
readTransactionParametersFromConfigurationFile()
readSubscriptionParametersFromConfigurationFile()
- 'string payLoadString = "{'Amount':'" + amount.ToString() + "','Category':'" + category.ToString() + "','Channel':'" + channel.ToString() + "','Description':'" + description.ToString() + "','MerchantTransactionId':'" + merchantTransactionId.ToString() + "','MerchantProductId':'" + merchantProductId.ToString() + "','MerchantApplicaitonId':'" + merchantApplicationId.ToString() + "','MerchantPaymentRedirectUrl':'" + merchantRedirectURI.ToString() + "','MerchantSubscriptionIdList':'" + MerchantSubscriptionIdList.ToString() + "','IsPurchaseOnNoActiveSubscription':'" + IsPurchaseOnNoActiveSubscription.ToString() + "','SubscriptionRecurringNumber':'" + SubscriptionRecurringNumber.ToString() + "','SubscriptionRecurringPeriod':'" + SubscriptionRecurringPeriod.ToString() + "','SubscriptionRecurringPeriodAmount':'" + SubscriptionRecurringPeriodAmount.ToString() + "'}";
+ 'string payLoadString = "{'Amount':'" + amount.ToString() + "','Category':'" + category.ToString() + "','Channel':'" + channel.ToString() + "','Description':'" + description.ToString() + "','MerchantTransactionId':'" + merchantTransactionId.ToString() + "','MerchantProductId':'" + merchantProductId.ToString() + "','MerchantApplicationId':'" + merchantApplicationId.ToString() + "','MerchantPaymentRedirectUrl':'" + merchantRedirectURI.ToString() + "','MerchantSubscriptionIdList':'" + MerchantSubscriptionIdList.ToString() + "','IsPurchaseOnNoActiveSubscription':'" + IsPurchaseOnNoActiveSubscription.ToString() + "','SubscriptionRecurringNumber':'" + SubscriptionRecurringNumber.ToString() + "','SubscriptionRecurringPeriod':'" + SubscriptionRecurringPeriod.ToString() + "','SubscriptionRecurringPeriodAmount':'" + SubscriptionRecurringPeriodAmount.ToString() + "'}";
Dim payLoadString As String = "{'Amount':'" & amount.ToString() & "','Category':'" & category.ToString() & "','Channel':'" & channel.ToString() & "','Description':'" & description.ToString() & "','MerchantTransactionId':'" & merchantTransactionId.ToString() & "','MerchantProductId':'" & merchantProductId.ToString() & "','MerchantPaymentRedirectUrl':'" & merchantRedirectURI.ToString() & "','MerchantSubscriptionIdList':'" & MerchantSubscriptionIdList.ToString() & "','IsPurchaseOnNoActiveSubscription':'" & IsPurchaseOnNoActiveSubscription.ToString() & "','SubscriptionRecurrences':'" & SubscriptionRecurringNumber.ToString() & "','SubscriptionPeriod':'" & SubscriptionRecurringPeriod.ToString() & "','SubscriptionPeriodAmount':'" & SubscriptionRecurringPeriodAmount.ToString() & "'}"
'Response.Write(payLoadString);
requestText.Text = payLoadString.ToString()
View
2  Notary/Vb/app1/README.txt
@@ -77,7 +77,7 @@ order to use this sample application code.
Each sample application contains a web.config file. It holds configurable parameters
described in an easy to read format. Please populate the following parameters in
-web.config as specified below:
+web.config file as specified below:
1) api_key : This is mandatory parameter, Set the value
as per your registered appliaction 'API key'
View
8 Notary/Vb/app1/Web.config
@@ -11,23 +11,23 @@
</system.web>
<appSettings>
<!-- This is mandatory key and value should be equal
- to PAYMENT Service registered application 'API key'
+ to PAYMENT Service registered application 'API key'
example: value="6747238512dbc1874cd0fjdaa89628c95"-->
<add key="api_key" value=""/>
<!-- This is mandatory key and value should be equal
- to PAYMENT Service registered application 'Secret key'
+ to PAYMENT Service registered application 'Secret key'
example: value="c9cj45219cc8e6b01"-->
<add key="secret_key" value=""/>
<!-- This is mandatory key and value should be equal
- to https://api.att.com for production environment or
+ to https://api.att.com for production environment or
https://api-uat.san1.attcompute.com for uat environment
example: value="https://api-uat.san1.attcompute.com"-->
<add key="FQDN" value=""></add>
<!-- This is optional key and value should be equal
- to "PAYMENT"
+ to "PAYMENT"
example: value="PAYMENT"-->
<add key="scope" value=""/>
View
6 Payment/Csharp/app1/Default.aspx.cs
@@ -1,4 +1,4 @@
-// <copyright file="Default.aspx.cs" company="AT&amp;T">
+// <copyright file="Default.aspx.cs" company="AT&amp;T">
// Licensed by AT&amp;T under 'Software Development Kit Tools Agreement.' 2012
// TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
// Copyright 2012 AT&amp;T Intellectual Property. All rights reserved. http://developer.att.com
@@ -110,7 +110,7 @@ public void ProcessCreateTransactionResponse()
/// <summary>
/// This function reads the Access Token File and stores the values of access token, expiry seconds
/// refresh token, last access token time and refresh token expiry time
- /// This funciton returns true, if access token file and all others attributes read successfully otherwise returns false
+ /// This function returns true, if access token file and all others attributes read successfully otherwise returns false
/// </summary>
/// <returns>Returns Boolean</returns>
public bool ReadAccessTokenFile()
@@ -145,7 +145,7 @@ public bool ReadAccessTokenFile()
/// function compares the current time with the refresh token taken time, if current time is greater then
/// returns INVALID_REFRESH_TOKEN
/// function compares the difference of last access token taken time and the current time with the expiry seconds, if its more,
- /// funciton returns INVALID_ACCESS_TOKEN
+ /// function returns INVALID_ACCESS_TOKEN
/// otherwise returns VALID_ACCESS_TOKEN
/// </summary>
/// <returns>Return String</returns>
View
8 Payment/Csharp/app1/README.txt
@@ -81,7 +81,7 @@ order to use this sample application code.
Each sample application contains a web.config file. It holds configurable parameters
described in an easy to read format. Please populate the following parameters in
-web.config as specified below:
+web.config file as specified below:
1) api_key : This is mandatory parameter, Set the value as per
your registered appliaction 'API key' field value.
@@ -117,14 +117,14 @@ web.config as specified below:
New Transaction.
Example: https://IIS_HOSTNAME:8080/notary/app1/Default.aspx
-10) notificationDetailsFile : ~\\notificationDetailsFile.txt - (This is optional
+10) notificationDetailsFile : ~\\notificationDetailsFile.txt: (This is optional
parameter, which points to the file path, where the
notification details will be saved by listener. If
the parameter is not configured, it will take the
default value as ~\\notificationDetailsFile.txt.
Give read/write access to this file.)
-11) refundFile : ~\\refundFile.txt - (This is optional parameter,
+11) refundFile : ~\\refundFile.txt: (This is optional parameter,
which points to the file path, where latest
transaction IDs will be stored. If the parameter is
not configured, it will take the default value as
@@ -146,4 +146,4 @@ Suppose you copied the sample app files in your IIS server webroot/payment/app1/
In order to run the sample application, type in
'http://IIS_HOSTNAME:8080/payment/app1/Default.aspx'(assuming you're using a HOSTNAME
machine with IIS Server and have not changed the default port number, otherwise adjust
-accordingly) on your browser.
+accordingly) on your web browser.
View
8 Payment/Csharp/app1/Web.config
@@ -8,23 +8,23 @@
</system.web>
<appSettings>
<!-- This is mandatory key and value should be equal
- to PAYMENT Service registered application 'API key'
+ to PAYMENT Service registered application 'API key'
example: value="e5d8603c08vf95da71b2a0db162491e"
-->
<add key="api_key" value=""/>
<!-- This is mandatory key and value should be equal
- to PAYMENT Service registered application 'Secret key'
+ to PAYMENT Service registered application 'Secret key'
example: value="673ed562e20df8b65"
-->