Skip to content

Commit 77dfb26

Browse files
committed
Merge branch 'develop'
2 parents e15a4b1 + de5571d commit 77dfb26

File tree

8 files changed

+76
-76
lines changed

8 files changed

+76
-76
lines changed

sdk/client/att-api-client.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ var AttApiClient = (function () {
239239
_serverPath = serverPath || "";
240240
},
241241
/**
242-
* Send and receive SMS messages from your application.
242+
* Send and receive SMS messages from your app.
243243
*
244244
* @class AttApiClient.SMS
245245
* @singleton
@@ -333,7 +333,7 @@ var AttApiClient = (function () {
333333
}
334334
},
335335
/**
336-
* Gets a list of SMSs sent to the application's short code
336+
* Gets a list of SMSs sent to the app's short code
337337
*
338338
* @param {Object} data An object which may contain the following properties:
339339
* @param {Number} data.shortcode ShortCode/RegistrationId to receive messages from.
@@ -378,7 +378,7 @@ var AttApiClient = (function () {
378378
}
379379
},
380380
/**
381-
* Send and receive MMS messages from your application
381+
* Send and receive MMS messages from your app
382382
*
383383
* @class AttApiClient.MMS
384384
* @singleton
@@ -864,7 +864,7 @@ var AttApiClient = (function () {
864864
}
865865
},
866866
/**
867-
* Authorize your application to access AT&T Web services
867+
* Authorize your app to access AT&T Web services
868868
* on behalf of a user.
869869
*
870870
* @class AttApiClient.OAuth
@@ -1762,7 +1762,7 @@ var AttApiClient = (function () {
17621762
},
17631763

17641764
/**
1765-
* Logout of the IAM session
1765+
* Logout of the In-App Messaging session
17661766
*
17671767
*/
17681768
logout: function logout(success, fail) {

sdk/doc_src/README.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
This zip file contains the documentation for AT&T's HTML5 SDK which provides an HTML5 framework for calling the AT&T API Platform.
1+
This ZIP file contains the documentation for the AT&T API Platform SDK for HTML5. This SDK provides an HTML5 framework for accessing the AT&T API Platform.
22
----------------------------------------------------------------
33
Current Version:
44
4.2
55
----------------------------------------------------------------
66
Release Notes:
7-
This HTML5 SDK release contains the following:
7+
This HTML5 SDK release includes the following changes:
88

9-
Remove Payment and Notary APIs
10-
Add OAuth Revoke token support
9+
Removes Payment and Notary APIs
10+
Adds OAuth Revoke Token support
1111

1212
----------------------------------------------------------------
1313
Link to Github:
1414
https://github.com/attdevsupport/att-html5-sdk
1515
----------------------------------------------------------------
16-
For information regarding the usage of this SDK please refer to docs/guides in the zip file.
16+
For information regarding the usage of this SDK, please refer to docs/guides in this ZIP file.

sdk/doc_src/guides.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}, {
1010
"name": "sdk_server_api",
1111
"title": "SDK Server Protocol",
12-
"description": "Overview of the Protocol between client and server"
12+
"description": "Overview of the protocol between the client and the SDK server"
1313
}
1414
]
1515
},
@@ -59,7 +59,7 @@
5959
{
6060
"name": "sample_app",
6161
"title": "Sample Apps",
62-
"description": "Sample Apps Overview"
62+
"description": "Sample Apps overview"
6363
},
6464
{
6565
"name": "sample_app_test",
@@ -74,23 +74,23 @@
7474
{
7575
"name" : "techtip_dc",
7676
"title" : "Device Capabilities",
77-
"description" : "Device Capabilities Cookbook."
77+
"description" : "Device Capabilities Cookbook"
7878
}, {
7979
"name" : "techtip_mms",
8080
"title" : "MMS",
81-
"description" : "MMS messages Cookbook."
81+
"description" : "MMS Messages Cookbook"
8282
}, {
8383
"name" : "techtip_mobo",
8484
"title" : "In-App Messaging",
85-
"description" : "In-App Messages Cookbook"
85+
"description" : "In-App Messaging Cookbook"
8686
}, {
8787
"name" : "techtip_sms",
8888
"title" : "SMS",
89-
"description" : "SMS messages Cookbook."
89+
"description" : "SMS Messages Cookbook"
9090
}, {
9191
"name" : "techtip_ads",
9292
"title" : "Advertising",
93-
"description" : "Advertising Cookbook."
93+
"description" : "Advertising Cookbook"
9494
}, {
9595
"name" : "techtip_speech",
9696
"title" : "Speech",

sdk/doc_src/guides/sample_app_test/README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Using the Sample Apps
22

3-
Now that you have completed setting up the server component of the SDK, you should be able to load the **Sample Apps** in your supported web browser.
3+
Now that you have set up the server component of the SDK, you should be able to load the **Sample Apps** in your supported Web browser.
44

55
The following section describes how to test your connection to the AT&T APIs using each Sample App.
66

@@ -14,13 +14,13 @@ A user accessing In-App Messaging features will be presented with a Consent Requ
1414

1515
There are several authentication methods you may use, but the easiest and fastest method is using an AT&T device with an active wireless number, and send an authorization password to AT&T’s short code:
1616

17-
![Oauth](resources/images/sample_apps_screens/oauth-one.png)
17+
![Oauth](/sdk/doc_src/resources/images/sample_apps_screens/oauth-one.png)
1818

1919
When the correct password is received, you will see a screen like the following indicating that you have authorized the request:
2020

21-
![Oauth](resources/images/sample_apps_screens/oauth-close.png)
21+
![Oauth](/sdk/doc_src/resources/images/sample_apps_screens/oauth-close.png)
2222

23-
Make sure to select "Close window", because this way the user is redirected back to your application and the OAuth token is delivered to the server.
23+
Make sure to select "Close window" to redirect the user back to your app and deliver the OAuth token to the server.
2424

2525
##Speech File to Text
2626
Point your browser to this address:
@@ -36,29 +36,29 @@ Point your browser to this address:
3636

3737
Use the provided audio controls to record speech and submit the audio to view the resulting text from the AT&T Speech-to-Text API.
3838

39-
Note that your browser must support current web audio standards in order to use this sample.
39+
Note that your browser must support current Web audio standards in order to use this sample.
4040

4141
##Text To Speech
4242
Point your browser to this address:
4343

4444
http://{yourdomain}:{port}/Speech/App3/index.html
4545

46-
Type English text into the provided text input area, and tap submit to send the test to the AT&T Text-to-Speech API. Tap **Play converted speech** to hear the resulting audio.
46+
Type English text into the provided text input area, and tap **Submit** to send the text to the AT&T Text-to-Speech API. Tap **Play converted speech** to hear the resulting audio.
4747

4848
##SMS
49-
This sample app demonstrates SMS messages sent from and to your application.
49+
This sample app demonstrates SMS messages sent from and to your app.
5050

5151
Point your browser to this address:
5252

5353
http://{yourdomain}:{port}/SMS/App1/index.html
5454

55-
This sample application showcases three different features. The first one, allows the app to send a short message to a given phone number: enter the _Phone Number_ and the _Message_ and press the **Send Message** button.
55+
This sample app showcases three different features. The first one sends a short message to a given phone number: enter the _Phone Number_ and the _Message_ and press the **Send Message** button.
5656

5757
After sending your message, you will see a screen showing the **Message ID** that corresponds to the sent message.
5858

5959
To retrieve the status of the message, tap **Get Status**.
6060

61-
To check the messages sent to a specific short code, you must have at least one short code configured on your AT&T Developer Program application. To add a short code, open the configuration file at this location:
61+
To check the messages sent to a specific short code, you must have at least one short code configured on your AT&T Developer Program app. To add a short code, open the configuration file at this location:
6262

6363
/webcontent/SMS/App1/app/Config.js
6464

@@ -82,9 +82,9 @@ Point your browser to this address:
8282

8383
http://{yourdomain}:{port}/SMS/App2/index.html
8484

85-
This sample application demonstrates the callback functionality. In this sample, the app counts votes sent to a specific short code using specific test in the message body.
85+
This sample app demonstrates the callback functionality. In this sample, the app counts votes sent to a specific short code using specific text in the message body.
8686

87-
To configure your short code on the application, open the configuration file at this location:
87+
To configure your short code on the app, open the configuration file at this location:
8888

8989
/webcontent/SMS/App2/app/Config.js
9090

@@ -97,7 +97,7 @@ Configure the parameters for the short code:
9797

9898
The app will count messages to the short code with the text **"Football"**, **"Basketball”**, or **"Baseball”**.
9999

100-
**Note** Make sure to configure the callback for your short code so it points to:
100+
**Note:** Make sure to configure the callback for your short code so it points to:
101101

102102
http://{yourdomain}:{port}/att/sms/votelistener
103103

@@ -108,7 +108,7 @@ Point your browser to this address:
108108

109109
http://{yourdomain}:{port}/MMS/App1/index.html
110110

111-
This sample application sends a multimedia message to a given phone number. Enter the _Phone Number_ and the _Message_, select an image from the _Chose File_ menu and tap **Send Message**.
111+
This sample application sends a multimedia message to a given phone number. Enter the _Phone Number_ and the _Message_, select an image from the _Choose File_ menu and tap **Send Message**.
112112

113113
After sending a message, the app displays a **Message ID** corresponding to the message sent. To retrieve the status of the message, tap **Get Status**.
114114

@@ -131,7 +131,7 @@ Configure the parameters for the short code:
131131
shortCode : 'your short code here'
132132

133133

134-
**Note** You must configure the callback for the short code in your application so that it points to this location:
134+
**Note:** You must configure the callback for the short code in your application so that it points to this location:
135135

136136
http://{yourdomain}:{port}/att/mms/gallerylistener
137137

sdk/doc_src/guides/server_java/README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
HTML5 SDK Server (Java Implementation)
22
===
33

4-
This guide provides instructions for creating a Web application using Java. At the end of this guide you will have a Java Web application that can connect to the APIs provided by AT&T.
4+
This guide provides instructions for creating a Web app using Java. At the end of this guide you will have a Java Web app that can connect to the APIs provided by AT&T.
55

6-
To simplify the deployment of the SDK using Java, we have included an embedded Jetty servlet container. The Java code is built using Apache Ant.
6+
To simplify the deployment of the SDK using Java, we have included an embedded Jetty servlet container. The Java code is built using Apache Ant.
77

88
Prerequisites
99
----
1010

1111
- Java version 1.6 or later. You can obtain this from [http://java.com](http://java.com).
12-
- Apache Ant version 1.8 or later
12+
- Apache Ant version 1.8 or later.
1313

1414
- Optional:
15-
- Eclipse Integrated Development Environment (IDE) for Java Developers
15+
- Eclipse Integrated Development Environment (IDE) for Java Developers.
1616

1717

18-
We have provided the .project and .classpath files that are needed to automatically create an Eclipse project. You can build and run the application using these files instead of using the command line instructions.
18+
We have provided the .project and .classpath files that are needed to automatically create an Eclipse project. You can build and run the app using these files instead of using the command line instructions.
1919

20-
**Note:** Windows users follow the **Build and Run using Eclipse** instructions to build and run the SDK using Eclipse without needing to configure a command line environment.
20+
**Note:** Windows users follow the **Build and Run using Eclipse** instructions to build and run the SDK using Eclipse without needing to configure a command-line environment.
2121

2222
Run the following commands to build and start the Java server:
2323

@@ -27,7 +27,7 @@ Run the following commands to build and start the Java server:
2727
$ ant -version
2828
Apache Ant(TM) version 1.8.2 compiled on February 28 2011
2929

30-
If you want to generate a .war file for deployment with a different servlet container, you can use the provided Ant build file. If you deploy the .war into a path below root, modify the _serverUrl = "/att" variable in att-api-client.js to include your path.
30+
If you want to generate a .war file for deployment with a different servlet container, you can use the provided Ant build file. If you deploy the .war into a path below root, modify the _serverUrl = "/att" variable in att-api-client.js to include your path.
3131

3232
Java Server Documentation
3333
---
@@ -39,7 +39,7 @@ Server configuration
3939
Open the file sdk/server/java/conf/att-api.properties, find the following settings and customize them with the appropriate values:
4040

4141
# Replace these values with App Key and Secret found in your
42-
# application
42+
# app
4343
AppKey=XXXXXX
4444
Secret=XXXXXX
4545

@@ -54,7 +54,7 @@ This SDK comes with a default set of self-signed certificates in the server/java
5454

5555
Note: Since these default certificates are self-signed, you will see a certificate warning the first time you access an SSL link on the SDK server. You can either continue on through the warning, or purchase secure server certificates.
5656

57-
A few of the samples demonstrate scenarios involving incoming notifications from AT&T, which require certificates whose domain name matches the actual name of the server hosting the samples. You can generate or obtain appropriate self-signed certificates or purchase registrar-signed certificates. If you use your own certificate files, there are detailed instructions for generating an updated .keystore file in server/java/certs/readme.txt.
57+
A few of the samples demonstrate scenarios involving incoming notifications from AT&T, which require certificates whose domain name matches the actual name of the server hosting the samples. You can generate or obtain appropriate self-signed certificates or purchase registrar-signed certificates. If you use your own certificate files, there are detailed instructions for generating an updated .keystore file in server/java/certs/readme.txt.
5858

5959

6060
Command Line (Mac, Linux, Unix)
@@ -63,10 +63,10 @@ Command Line (Mac, Linux, Unix)
6363
Run using the command line
6464
---
6565

66-
Once you have compiled the source code and created a .war file, you can run the application using Jetty. To deploy the .war file in a different Java servlet container such as Tomcat, copy the .war file from dist/att.war into your servlet container's deployment directory and follow your vendor's instructions for deploying .war files.
66+
Once you have compiled the source code and created a .war file, you can run the app using Jetty. To deploy the .war file in a different Java servlet container such as Tomcat, copy the .war file from dist/att.war into your servlet container's deployment directory and follow your vendor's instructions for deploying .war files.
6767

6868

69-
To run the application, using the included Jetty server, use the included shell script, by typing the following at a command prompt in the sdk/server/java directory:
69+
To run the app using the included Jetty server, use the included shell script, by typing the following at a command prompt in the sdk/server/java directory:
7070

7171
$ sh run.sh
7272

@@ -78,7 +78,7 @@ You can also use the 'nohup' command to run the server in the background (<http:
7878

7979
$ nohup sh run.sh &
8080

81-
The application should now be running on http://yourhost:4567/
81+
The app should now be running on http://yourhost:4567/
8282

8383
To change the port number, pass a different port as the first argument:
8484

@@ -90,15 +90,15 @@ Stopping the server
9090
If you run the server as an interactive process you must end the process manually using control-c.
9191
If you use the 'nohup' command to run the server in the background, remember to manually end the process when you are done with it.
9292

93-
**AT&T does not recommend deploying your application using the provided embedded Jetty server.** It should be used for development and testing purposes only.
94-
If you want your application to run for an extended period of time, we recommend deploying the application as a .war file. See "Deploy the .war File" below.
95-
That way you can take advantage of the deployment management options on your application server.
93+
**AT&T does not recommend deploying your app using the provided embedded Jetty server.** It should be used for development and testing purposes only.
94+
If you want your app to run for an extended period of time, we recommend deploying the app as a .war file. See "Deploy the .war File" below.
95+
That way you can take advantage of the deployment management options on your app server.
9696

9797

9898
Build using the command line (Apache Ant)
9999
---
100100

101-
To build the application using Ant from the command line:
101+
To build the app using Ant from the command line:
102102

103103
$ sh build.sh
104104

@@ -108,7 +108,7 @@ This command will create a directory called *dist*, as well the __att.jar__ and
108108
Eclipse IDE (Mac, Linux, Unix, Windows)
109109
====
110110

111-
Build and Run using Eclipse
111+
Build and run using Eclipse
112112
---
113113

114114
Start Eclipse and create a new project by choosing File->New->Project.
@@ -125,11 +125,11 @@ Start Eclipse and create a new project by choosing File->New->Project.
125125

126126
Once the project is created it should build automatically without error.
127127

128-
Using the package *explorer* expand com.html5sdk.jetty and open EmbeddedServer.
128+
Using the package *explorer*, expand com.html5sdk.jetty and open EmbeddedServer.
129129

130130
From the Run menu, choose the Run command.
131131

132-
The application should now be running on http://yourhost:4567/
132+
The app should now be running on http://yourhost:4567/
133133

134134
When you are done using the server, stop the process using the Stop button from Eclipse's console view or debug view.
135135

@@ -151,14 +151,14 @@ Deploy the .war File
151151

152152
The Ant build.xml provided by the SDK creates a deployable .war file. It will bundle the client directory, java code, and the contents of **webapp/WEB-INF/**.
153153

154-
**att-api.properties** will be copied to **WEB-INF/classes/**, so you need to configure your application before creating the build.
154+
**att-api.properties** will be copied to **WEB-INF/classes/**, so you must configure your app before creating the build.
155155

156156
Follow the directions in **Build using the command line (Apache Ant)** and copy the **att.war** to your application server. Every application server deployment is different, but the build .war file is self-contained and should deploy on any standards-compliant application server.
157157

158158
Alternate locations for att-api.properties
159159
---
160160

161-
To provide some flexibility in the application deployment, there are two ways to load the properties file. The default is to look on the classpath using the classloader for **att-api.properties.** You can override this behavior by specifying a Java system property. By specifying a system property, the application can be re-configured without recompiling the .war file.
161+
To provide some flexibility in deployment, there are two ways to load the properties file. The default is to look on the classpath using the classloader for **att-api.properties.** You can override this behavior by specifying a Java system property. By specifying a system property, the app can be re-configured without recompiling the .war file.
162162

163163
**com.html5sdk.example.servlet.AttConstants** will look first for the system property **att.api.conf:**
164164

0 commit comments

Comments
 (0)