Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Glossary

Here is the glossary of all terms that are used within this document.

Term

Abbreviation

Definition

Slug

Slug

The unique identifying part of a web address, typically at the end of the URL

A URL safe string used to identify an entity, usually generated by the name of the entity.

API Endpoints

...

networks

Request Parameters

Name

Value(s)

Description

Required

Default

key

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

The system will always remember your last incremental download. Using this option will download only deals added, modified, or deleted since your last download.

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

slug

The unique slug assigned to the network.

Name

name

The human readable name of the network

Countries

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""]"