Professional Documents
Culture Documents
| iii
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .v
Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi
Adapter Code for TIBCO API Exchange and Joomla! Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi
Other Product Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi
Chapter 1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
Product Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Role of Application Developers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
What is an API key? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
General Steps for Creating an Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
iv
| Contents
|v
Preface
Adapter Code for TIBCO API Exchange and Joomla! enables the creation of
Joomla!-based API management portals with TIBCO API Exchange to provide a
highly branded and customizable experience to application developers and API
providers.
Topics
vi
| Related Documentation
Related Documentation
This section lists documentation resources you may find useful.
Adapter Code for TIBCO API Exchange and Joomla! User's Guide
TIBCO API Exchange Concepts Read this document to get an overview of API
Exchange concepts, workflow, and deployment.
Joomla!See http://docs.joomla.org.
|1
Chapter 1
Overview
This chapter provides a summary of the steps for creating an application using
the API management portal that the Adapter Code for API Exchange and Joomla!
enables.
Topics
| Chapter 1
Overview
Product Overview
TIBCO API Exchange Manager allows service providers to package and offer
services or APIs to developers inside or outside their company. A self-service
portal allows developers to search and browse available APIs and
documentation, request access, register applications, generate developer keys,
and test API functionality.
|3
Chapter 2
Developing an Application
Topics
| Chapter 2
Developing an Application
Getting Started
To develop an application using the Management Portal, you create applications,
add products and associated APIs to the application, and request a product key
for the application.
Before you decide to develop an application, the Management Portal allows you
to browse through products that have been created by managers.
To access the Getting Started page for the Management Portal, link to the URL
where the port is installed; for example:
http://<hostname>/index.php
The Getting Started page appears:
Getting Started 5
The product page for the selected product appears. The following figure
shows the product page for a Book Catalog product.
3. To view a product plan, you must sign into the Management Portal. Click the
Sign-in selection in a product plan box.
If you dont have a sign-in, you can request one by registering as an API User.
See Registering as an API User, page 6.
4. To view the APIs associated with the product, click the API Explorer tab.
5. To view the documentation for the product, click the Documentation tab.
| Chapter 2
Developing an Application
4. To request a plan for the product, click REQUEST PLAN in one of the product
plans.
For detailed information on requesting a product plan, see Requesting a
Product Plan, page 11.
5. To explore the APIs available for the product, click the API Explorer tab.
| Chapter 2
Developing an Application
For detailed information on exploring the APIs for a product plan, see
Exploring a Products API Set, page 9.
6. To view documentation about the product, click on the Documentation tab.
A description of the product appears, including a description of the API set. A
list of any documents that have been provided for the product also appears.
Known Issue: (ASG-2487)The API Explorer caches the URL, so you can't see new
responses (for negative tests of keys) unless you clear the cache.
10
| Chapter 2
Developing an Application
To the right of the API name there is a row of selections that let you explore
the API in more depth:
Show/Hide Click Show/Hide to toggle the display of API operations on
and off.
List Operations Displays a list of operations for the API.
Expand Operations Expands the list of operations and presents an interface
that allows you to test the operations.
For information on testing API operations, see Testing API Operations,
page 19.
Raw Displays the API code as a text file (without formatting).
To view the documentation for the product, click the Documentation tab.
12
| Chapter 2
Developing an Application
Registering an Application
Product managers can register applications and assign products to the
applications.
To register an application:
1. Log into the Developer Portal.
2. Click the Applications tab.
3. Click Register Application.
An interface appears for defining the application.
4. Specify the following information to identify the application:
Application name Enter a name for the application.
Icon Optionally, associate an icon with your application by clicking
Choose file, browsing for the file containing the image that you want, and
then clicking Open.
The selected image appears on the configuration interface.
Description Optionally, enter a description for the application.
The bottom of the Register new Application page shows the products that you
can associate with the application.
5. To choose a product:
a. In the list of products, click on the name of a product.
A list of plans that have been enabled for the product appears.
b. To enable a plan, click Use (in the Enabled column).
A checkbox appears in the Enabled column.
If your system administrator has enabled OAuth authentication for your
environment, and you want to use OAuth, click Yes in the OAuth section.
Registering an Application 13
14
| Chapter 2
Developing an Application
Editing an Application 15
Editing an Application
To edit an application:
1. Sign into the Developer Portal.
2. Click the Applications tab.
3. Choose an application.
The Applications dialog for the application appears.
4. Click Edit.
5. Edit the configuration for the application as required.
For information on the fields for configuring the application, see Registering
an Application, page 12.
16
| Chapter 2
Developing an Application
The bar graph for usage indicates the percent utilization of the usage quota.
If the usage is over its configured threshold the bar is red.
18
| Chapter 2
Developing an Application
Select the API Explorer and then specify an application key. This brings up a
list of APIs that you can use with your application.
Use the application key in the process of triggering analytics. In order to run
analytics, your installation must be running TIBCO Spotfire, and Spotfire
must be configured correctly.
To test an operation, enter a value in the input field, and then click Try it out.
20
| Chapter 2
Developing an Application
The Management Portal runs the operation and either returns the requested
record or displays an error code.
5. To close the expanded operation display, click on the name of the operation.
For example, to close the display for the Find Book by Author operation, click
on Find Book by Author.
Building an Application 21
Building an Application
Once you have assembled products into an application, you will need to take
certain steps to use the product key in your calls to APIs.
This section provides information on how to use the API key in application
development.
22
| Chapter 2
Developing an Application
Contacting Support
To contact customer support for the Developer Portal, click the Support tab, type
a query, and then click the SEND YOUR QUERY button.