Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 75 lines (61 sloc) 3.247 kb
5b6793c Zohar Babin fresh PHP watson demo
authored
1 ******************************************************************************************
2 * Licensed by AT&T under 'Software Development Kit Tools Agreement.' 2012
3 * TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
4 * Copyright 2012 AT&T Intellectual Property. All rights reserved. http://developer.att.com
5 * For more information contact developer.support@att.com<mailto:developer.support@att.com>
6 ******************************************************************************************
7 AT&T API Platform Samples - SpeechToText app 1
8 ------------------------------
9 This file describes how to set-up, configure and run the PHP Applications
10 using AT&T API Platform services.
11 It covers all steps required to register the application on DevConnect and,
12 based on the generated API keys and secrets, create and run one's own
13 full-fledged sample applications.
14 1. Configuration
15 2. Installation
16 3. Parameters
17
18
19 1. Configuration
20 Configuration consists of a few steps necessary to get an application
21 registered on DevConnect with the proper services and
22 endpoints, depending on the type of client-side application
23 (autonomous/non-autonomous).
24
25 To register an application, go to https://devconnect-api.att.com/ and login
26 with your valid username and password.
27 Next, choose "My Apps" from the bar at the top of the page and click the
28 "Setup a New Application" button.
29
30 Fill in the form, in particular all fields marked as "required".
31
32
33 Having your application registered, you will get back an important pair of
34 data: an API key and Secret key. They are
35 necessary to get your applications working with the AT&T API Platform. See
36 'Adjusting parameters' below to learn how to use
37 these keys.
38
39 Initially your newly registered application is restricted to the "Sandbox"
40 environment only. To move it to production,
41 you may promote it by clicking the "Promote to production" button. Notice
42 that you will get a different API key and secret,
43 so these values in your application should be adjusted accordingly.
44
45 Depending on the kind of authentication used, an application may be based on
46 either the Autonomous Client or the Web-Server
47 Client OAuth flow (see https://devconnect-api.att.com/docs/oauth20/autonomous-client-application-oauth-flow or
48 https://devconnect-api.att.com/docs/oauth20/web-server-client-application-oauth-flow
49 respectively).
50
51 2. Installation
52 ** Requirements
53 Apache web server
54 PHP 5.2+
55 Apache and PHP configured, on most Linux systems if installed using packages
56 this will be done automatically.
57
58 Copy the sample application folder to Apache web root folder, for example
59 /var/www/html.
60
61 3. Parameters
62 Each sample application contains a config.php file. It holds configurable
63 parameters described in an easy to read format.
64 Please populate the following parameters in config.php as specified
65 below:
66 1) api_key : {set the value as per your registered application
67 'API key' field value}
68 2) secret_key : {set the value as per your registered application
69 'Secret key' field value}
70 3) FQDN : https://api.att.com
71
72 Note: You must update parameters 1-2 after you promote your application
73 from 'Sandbox' environment to 'Production' environment.
74
Something went wrong with that request. Please try again.