Table of Contents |
---|
Glossary
Here is the glossary of all terms that are used within this document.
Term | Abbreviation | Definition |
---|---|---|
Slug | Slug |
A URL safe string used to identify an entity, usually generated by the name of the entity. |
API Endpoints
getNetworksnetworks
Description: Use this service call to get information about networks supported by FMTC.
Example Request: http://servicess3.fmtc.co/api/v2v3/getNetworksnetworks?keyapi_token=APIKEY
...
networks
Request Parameters
Name | Value(s) | Description | Required | Default |
---|
api_token | APIKEY | API key for authentication, available on the API Keys & Calls page.(https://account.fmtc.co/cp/api_keys) | Yes | N/A, must always be provided |
incremental
0, 1
No
0
format | String XML, JSON, CSV, TAB, or PIPE | Choose the feed format you would like returned. | No | JSON |
networkid | Integer | Choose the network ID that you wish to have returned. | No | N/A, by default all networks will be returned unless specified |
Implementation
Response Elements
Name | Description |
---|
slug | The unique slug assigned to the network. |
name | The human readable name of the network |
countries | The two-letter country codes for the countries that the network supports. |
id | The unique ID for the network that can be used across FMTC endpoints. |
Example Response - JSON
Here is an example of a JSON Response from the getNetworks networks endpoint.
Code Block |
---|
[ { { "id": 13, "cNamename": "Affiliate Future", "cSlugslug": "AF", "aCountriescountries": [ "US", "CA", "UK" ] }, { "cName": "Affiliate Future UK", "cSlug": "AFU", "aCountries": [ "UK" ] } ] |
Example Response - XML
Here is an example of an XML Response from the getNetworks networks endpoint.
Code Block |
---|
<?xml version="1.0" encoding="iso-8859-1" ?> <networks> <network> <slug>AF</slug> <id>13</id> <name>Affiliate Future</name> <slug>AF</slug> <countries> <country>US</country> <country>CA</country> <country>UK</country> </countries> </network> <network> <slug>AFU</slug> <name>Affiliate Future UK</name> <countries> <country>UK</country> </countries> </network> </networks> |
Example Response - CSV
Here is an example of a JSON Response from the getNetworks networks endpoint.
Code Block |
---|
Slugid,name,Nameslug,Countriescountries AF13,"Affiliate Future",AF,"[""US"",""CA"",""UK" AFU,"Affiliate Future UK",UK"]" |
Example Response - TAB
Here is an example of a JSON Response from the getNetworks networks endpoint.
Code Block |
---|
Slugid name Nameslug Countriescountries AF13 "Affiliate Future" AF "[""US"",""CA"",""UK AFU "Affiliate Future UK" UK""]" |
Example Response - PIPE
Here is an example of a JSON Response from the getNetworks networks endpoint.
Code Block |
---|
Slugid|name|Nameslug|Countriescountries AF13|"Affiliate Future"|AF|"[""US"",""CA"",""UK AFU|"Affiliate Future UK"|UK""]" |