Back to top

API Documentation

User

Supports user functions.

Login as user

Login as user
POST/advertiser/user/login

This function will login a user.

Example URI

POST /advertiser/user/login
Request
HideShow
Headers
Content-Type: application/json
Body
{
  "username": "and1",
  "password": "testpassword"
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "id": 1,
  "email": "a.stetter@escmediagroup.de",
  "username": "and1",
  "firstname": "Hello, world!",
  "lastname": "Hello, world!",
  "language": "de-DE",
  "access_token": "_wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948",
  "phone": "null",
  "mobile": "null",
  "picture": "null"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "id": {
      "type": "number",
      "description": "User id."
    },
    "email": {
      "type": "string",
      "description": "E-Mail adress of the User."
    },
    "username": {
      "type": "string",
      "description": "Username of the User."
    },
    "firstname": {
      "type": "string",
      "description": "Fistname of the User."
    },
    "lastname": {
      "type": "string",
      "description": "Lastname of the User."
    },
    "language": {
      "type": "string",
      "description": "Prefered language of the User."
    },
    "access_token": {
      "type": "string",
      "description": "Access token for user."
    },
    "phone": {
      "type": "string",
      "description": "Phone number of the User."
    },
    "mobile": {
      "type": "string",
      "description": "Mobile number of the User."
    },
    "picture": {
      "type": "string",
      "description": "User picture."
    }
  }
}

Forgot password request

Forgot password request
POST/advertiser/user/forgotpassword

This function will send a email to the user with a token for changing the password. With this token call the action “resetpassword” to change the users password.

Example URI

POST /advertiser/user/forgotpassword
Request
HideShow
Headers
Content-Type: application/json
Body
{
    "email": "a.stetter@escmediagroup.de",
}
Response  200
HideShow
Headers
Content-Type: application/json
Location: /advertiser/user/forgotpassword
Body
{
  "status": true
}

Reset password for User

Reset password for User
POST/advertiser/user/resetpassword

This function will change the users password after an forgot password request.

Example URI

POST /advertiser/user/resetpassword
Request
HideShow
Headers
Content-Type: application/json
Body
{
  "token": "YTFOY4n7whDOWybMq2xwXNHqxwniZVpI_1526026267",
  "password": "newpassword",
  "passwordRepeat": "newpassword"
}
Response  200
HideShow
Headers
Content-Type: application/json
Location: /advertiser/user/resetpassword
Body
{
  "status": true
}

Change password for User

Change password for User
POST/advertiser/user/changepassword

This function will change the users password for a logged in user.

Example URI

POST /advertiser/user/changepassword
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
  "password": "changepassword",
  "passwordRepeat": "changepassword"
}
Response  200
HideShow
Headers
Content-Type: application/json
Location: /advertiser/user/changepassword
Body
{
  "status": true
}

Change language for User

Change language for User
POST/advertiser/user/changelanguage

This function will change the users language for a logged in user.

Example URI

POST /advertiser/user/changelanguage
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
    "language": "de-DE",
}
Response  200
HideShow
Headers
Content-Type: application/json
Location: /advertiser/user/changelanguage
Body
{
  "status": true
}

Package

Show current package

Show current package
GET/advertiser/package/package

This function will return the current package.

Example URI

GET /advertiser/package/package
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
[
  {
    "name": "APPROACHING",
    "duration": null,
    "termination_until": -1209600,
    "terminated": null,
    "price": 199,
    "profile_requests": 10,
    "price_extra_10_analysis": 60,
    "price_extra_25_analysis": 125,
    "price_extra_100_analysis": 400,
    "accounts": 24,
    "upgrade_package": null,
    "upgrate_at": null
  }
]

Shows packages

Shows packages
GET/advertiser/package/packages

This function will return the packages.

Example URI

GET /advertiser/package/packages
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
[
  {
    "id": 1,
    "name": "APPROACHING",
    "price": 199,
    "price_extra_account": 149,
    "duration": 1,
    "analysis": 25,
    "take_analysis": 0,
    "price_extra_10_analysis": 0,
    "price_extra_25_analysis": 0,
    "price_extra_100_analysis": 0
  },
  {
    "id": 2,
    "name": "ADVANCED",
    "price": 319.01,
    "price_extra_account": 239,
    "duration": 3,
    "analysis": 50,
    "take_analysis": 1,
    "price_extra_10_analysis": 40,
    "price_extra_25_analysis": 100,
    "price_extra_100_analysis": 0
  },
  {
    "id": 3,
    "name": "PIONEER",
    "price": 399,
    "price_extra_account": 299,
    "duration": 6,
    "analysis": 75,
    "take_analysis": 1,
    "price_extra_10_analysis": 40,
    "price_extra_25_analysis": 75,
    "price_extra_100_analysis": 0
  }
]

Shows navigation

Shows navigation
GET/advertiser/package/navigation

This function will return the navigation.

Example URI

GET /advertiser/package/navigation
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
[
  {
    "name": "SIDEBAR.SEARCH",
    "title": true
  },
  {
    "name": "SIDEBAR.SEARCH",
    "url": "/influencer/search",
    "icon": "fa fa-search"
  },
  {
    "name": "SIDEBAR.HISTORY",
    "url": "/history",
    "icon": "icon-layers"
  },
  {
    "name": "SIDEBAR.PACKAGES",
    "url": "/packages",
    "icon": "fa fa-cubes"
  },
  {
    "name": "SIDEBAR.INFLUENCER_LISTS",
    "url": "/influencer/lists",
    "icon": "fa fa-users"
  },
  {
    "name": "SIDEBAR.GENERAL",
    "title": true
  },
  {
    "name": "SIDEBAR.BLOG",
    "url": "/blog",
    "icon": "fa fa-pencil-square-o"
  },
  {
    "name": "HEADER.PROFILE",
    "url": "/profile",
    "icon": "fa fa-user"
  },
  {
    "name": "SIDEBAR.CAMPAIGN_MANAGEMENT",
    "title": true
  },
  {
    "name": "SIDEBAR.DASHBOARD",
    "url": "/dashboard",
    "icon": "icon-speedometer"
  },
  {
    "name": "SIDEBAR.CREATE",
    "url": "/campaign/create",
    "icon": "fa fa-plus"
  },
  {
    "name": "APPLICATIONS.APPLICATIONS",
    "url": "/applications",
    "icon": "icon-docs"
  },
  {
    "name": "SIDEBAR.MESSENGER",
    "url": "/messenger",
    "icon": "icon-envelope-letter"
  },
  {
    "name": "SIDEBAR.TRACK_LIST",
    "url": "/campaign/track-list",
    "icon": "icon-list"
  },
  {
    "name": "SIDEBAR.PAYMENTS",
    "url": "/payments",
    "icon": "icon-credit-card"
  }
]

Upgrade the package

Save the package upgrade
POST/advertiser/package/upgrade

This function will save the package upgrade.

Example URI

POST /advertiser/package/upgrade
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
    "package_id": 1,
    "package_at": 1597742322,
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
[
    {
      "status": true,
    }
]

Campaign

Allow to add campaign

Check if create campaign is allowed

Check if create campaign is allowed
GET/advertiser/campaign/check

This function will check if advertiser is allowed to create campaign.

Example URI

GET /advertiser/campaign/check
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
    status: true,
    message: "We will deposit a payment of 20 EUR from your account with Sepa.",
}

Create a campaign

Create a campaign
POST/advertiser/campaign/create

This function will create a campaign.

Example URI

POST /advertiser/campaign/create
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
        "id": 1,
        "status": 1,
        "name": "My Campaign",
        "type": 2,
        "description": "This is the best campaign you'd ever seen",
        "instructions": "Please post photo on instagram",
        "channel": 2,
        "payment": 1,
        "fix_price": 20.00,
        "application": 1,
        "application_start": 1500133474,
        "application_end": 1502811874,
        "execution_start": 1504280674,
        "execution_end": 1505490274,
        "label": {
            "type": "Paid per Post",
            "payment": "Fix",
            "channel": "Instagram",
            "status": "Planning"
          },
          "media": [
            {
              "id": 1,
              "campaign_id": 1,
              "name": "/campaign/1/ZlpEeG5bjA6yukj6y1tzwxETETQZTRAm.jpg",
            }
          ],
          "can": {
             "publish": 10,
             "delete": 30
          },
          "influencers": [
                  {
                    "influencerId": 1,
                    "socialId": 302755,
                    "profile_picture": "/user/social/302755.jpg",
                    "profile_name": "maximeee",
                    "full_name": "Maxime Herbord",
                    "channels": [
                      "instagram"
                    ],
                    "followers": 53768,
                    "engagements": 5757,
                    "engagementrate": 10.70711203689927,
                    "audience": {
                      "male": 0.19152276295133439,
                      "female": 0.8084772370486656
                    },
                    "location_by_country": [
                      {
                        "DE": 0.6924471299093655,
                        "AT": 0.04350453172205438,
                        "US": 0.03625377643504532
                      }
                    ],
                    "age_split": {
                      "13-17": 0.16764003765249866,
                      "18-24": 0.591905734943879,
                      "25-34": 0.1981081756658183,
                      "35-44": 0.031683574050998135,
                      "45-64": 0.010662477686805921
                    },
                    "interests": [
                      "Pets",
                      "Coffee, Tea & Beverages",
                      "Shopping & Retail"
                    ]
                  }
          ]
    },
    {
        "id": 2,
        "status": 2,
        "name": "My Campaign 2",
        "type": 1,
        "description": "This is the best youtube campaign you'd ever seen",
        "instructions": "Please post photo on youtube",
        "channel": 1,
        "payment": 2,
        "fix_price": 0.00,
        "application": 1,
        "application_start": 1500133474,
        "application_end": 1502811874,
        "execution_start": 1504280674,
        "execution_end": 1505490274,
        "label": {
           "type": "Free Bee",
           "payment": "Fix",
           "channel": "Youtube",
           "status": "Published"
        },
        "media": [
           {
             "id": 2,
             "campaign_id": 2,
             "name": "/campaign/1/ZlpEeG5bjA6yukj6y1tzwxETETQZTRAm.jpg",
           }
        ],
        "can": {
          "storno": 40
        },
        "influencers": [
              {
                "influencerId": 1,
                "socialId": 302755,
                "profile_picture": "/user/social/302755.jpg",
                "profile_name": "maximeee",
                "full_name": "Maxime Herbord",
                "channels": [
                  "instagram"
                ],
                "followers": 53768,
                "engagements": 5757,
                "engagementrate": 10.70711203689927,
                "audience": {
                  "male": 0.19152276295133439,
                  "female": 0.8084772370486656
                },
                "location_by_country": [
                  {
                    "DE": 0.6924471299093655,
                    "AT": 0.04350453172205438,
                    "US": 0.03625377643504532
                  }
                ],
                "age_split": {
                  "13-17": 0.16764003765249866,
                  "18-24": 0.591905734943879,
                  "25-34": 0.1981081756658183,
                  "35-44": 0.031683574050998135,
                  "45-64": 0.010662477686805921
                },
                "interests": [
                  "Pets",
                  "Coffee, Tea & Beverages",
                  "Shopping & Retail"
                ]
              }
        ]
}
Response  201
HideShow
Headers
Content-Type: application/json
Location: /advertiser/campaign/create
Body
{
  "id": 1
}

Update a campaign

Update a campaign
PUT/advertiser/campaign/update/{id}

This function will update a campaign.

Example URI

PUT /advertiser/campaign/update/id
URI Parameters
HideShow
id
number (required) 

Campaign ID.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
    "name": "My Campaign",
    "type": 2,
    "description": "This is the best campaign you'd ever seen",
    "instructions": "Please post photo on instagram",
    "channel": 2,
    "payment": 1,
    "fix_price": 20.00,
    "application": 1,
    "application_start": 1500133474,
    "application_end": 1502811874,
    "execution_start": 1504280674,
    "execution_end": 1505490274,
    "label": {
       "type": "Free Bee",
       "payment": "Fix",
       "channel": "Youtube",
       "status": "Published"
    },
    "media": [
       {
         "id": 2,
         "campaign_id": 2,
         "name": "/campaign/1/ZlpEeG5bjA6yukj6y1tzwxETETQZTRAm.jpg",
       }
    ],
    "can": {
      "storno": 40
    },
    "influencers": [
          {
            "influencerId": 1,
            "socialId": 302755,
            "profile_picture": "/user/social/302755.jpg",
            "profile_name": "maximeee",
            "full_name": "Maxime Herbord",
            "channels": [
              "instagram"
            ],
            "followers": 53768,
            "engagements": 5757,
            "engagementrate": 10.70711203689927,
            "audience": {
              "male": 0.19152276295133439,
              "female": 0.8084772370486656
            },
            "location_by_country": [
              {
                "DE": 0.6924471299093655,
                "AT": 0.04350453172205438,
                "US": 0.03625377643504532
              }
            ],
            "age_split": {
              "13-17": 0.16764003765249866,
              "18-24": 0.591905734943879,
              "25-34": 0.1981081756658183,
              "35-44": 0.031683574050998135,
              "45-64": 0.010662477686805921
            },
            "interests": [
              "Pets",
              "Coffee, Tea & Beverages",
              "Shopping & Retail"
            ]
          }
      ]
}
Response  200
HideShow
Headers
Content-Type: application/json
Location: /advertiser/campaign/update/{id}
Body
{
  "status": true
}

Get campaign details

Get campaign details
GET/advertiser/campaign/detail/{id}

This function will show campaign details.

Example URI

GET /advertiser/campaign/detail/id
URI Parameters
HideShow
id
number (required) 

Campaign ID.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
  "id": 3
}
Response  200
HideShow
Headers
Content-Type: application/json
Location: /advertiser/campaign/detail
Body
{
    id: 3,
    name: "Erasco Fertigsuppe",
    description: "Eat much of it",
    payment: "",
    type: "",
    other: ""
}

List campaigns

List campaigns
GET/advertiser/campaign/list/?{status,type,channel,payment,application_start,application_end,execution_start,execution_end}

This function will lists campaigns.

Example URI

GET /advertiser/campaign/list/?status&type&channel&payment&application_start&application_end&execution_start&execution_end
URI Parameters
HideShow
status
number (optional) 

Status ID.

type
number (optional) 

Type ID.

channel
number (optional) 

Channel ID.

payment
number (optional) 

Payment ID.

application_start
number (optional) 

Application Start.

application_end
number (optional) 

Application End.

execution_start
number (optional) 

Execution Start.

execution_end
number (optional) 

Execution End.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Location: /advertiser/campaign/list
Body
{
    {
        "id": 1,
        "status": 1,
        "name": "My Campaign",
        "type": 2,
        "description": "This is the best campaign you'd ever seen",
        "instructions": "Please post photo on instagram",
        "channel": 2,
        "payment": 1,
        "fix_price": 20.00,
        "application": 1,
        "application_start": 1500133474,
        "application_end": 1502811874,
        "execution_start": 1504280674,
        "execution_end": 1505490274,
        "label": {
            "type": "Paid per Post",
            "payment": "Fix",
            "channel": "Instagram",
            "status": "Planning"
          },
          "media": [
            {
              "id": 1,
              "campaign_id": 1,
              "name": "/campaign/1/ZlpEeG5bjA6yukj6y1tzwxETETQZTRAm.jpg",
            }
          ],
          "can": {
            "publish": 10,
            "delete": 30
          },
          "influencers": [
                {
                  "influencerId": 1,
                  "socialId": 302755,
                  "profile_picture": "/user/social/302755.jpg",
                  "profile_name": "maximeee",
                  "full_name": "Maxime Herbord",
                  "channels": [
                    "instagram"
                  ],
                  "followers": 53768,
                  "engagements": 5757,
                  "engagementrate": 10.70711203689927,
                  "audience": {
                    "male": 0.19152276295133439,
                    "female": 0.8084772370486656
                  },
                  "location_by_country": [
                    {
                      "DE": 0.6924471299093655,
                      "AT": 0.04350453172205438,
                      "US": 0.03625377643504532
                    }
                  ],
                  "age_split": {
                    "13-17": 0.16764003765249866,
                    "18-24": 0.591905734943879,
                    "25-34": 0.1981081756658183,
                    "35-44": 0.031683574050998135,
                    "45-64": 0.010662477686805921
                  },
                  "interests": [
                    "Pets",
                    "Coffee, Tea & Beverages",
                    "Shopping & Retail"
                  ]
                }
            ]
    },
    {
        "id": 2,
        "status": 2,
        "name": "My Campaign 2",
        "type": 1,
        "description": "This is the best youtube campaign you'd ever seen",
        "instructions": "Please post photo on youtube",
        "channel": 1,
        "payment": 2,
        "fix_price": 0.00,
        "application": 1,
        "application_start": 1500133474,
        "application_end": 1502811874,
        "execution_start": 1504280674,
        "execution_end": 1505490274,
        "label": {
           "type": "Free Bee",
           "payment": "Fix",
           "channel": "Youtube",
           "status": "Published"
        },
        "media": [
           {
             "id": 2,
             "campaign_id": 2,
             "name": "/campaign/1/ZlpEeG5bjA6yukj6y1tzwxETETQZTRAm.jpg",
           }
        ],
        "can": {
          "storno": 40
        },
        "influencers": [
              {
                "influencerId": 1,
                "socialId": 302755,
                "profile_picture": "/user/social/302755.jpg",
                "profile_name": "maximeee",
                "full_name": "Maxime Herbord",
                "channels": [
                  "instagram"
                ],
                "followers": 53768,
                "engagements": 5757,
                "engagementrate": 10.70711203689927,
                "audience": {
                  "male": 0.19152276295133439,
                  "female": 0.8084772370486656
                },
                "location_by_country": [
                  {
                    "DE": 0.6924471299093655,
                    "AT": 0.04350453172205438,
                    "US": 0.03625377643504532
                  }
                ],
                "age_split": {
                  "13-17": 0.16764003765249866,
                  "18-24": 0.591905734943879,
                  "25-34": 0.1981081756658183,
                  "35-44": 0.031683574050998135,
                  "45-64": 0.010662477686805921
                },
                "interests": [
                  "Pets",
                  "Coffee, Tea & Beverages",
                  "Shopping & Retail"
                ]
              }
          ]
    }

}

Set campaign status

Set campaign status
GET/advertiser/campaign/setstatus/{status}/{id}

This function will set the campaign status.

Example URI

GET /advertiser/campaign/setstatus/status/id
URI Parameters
HideShow
status
string (required) 

New status.

id
number (required) 

Campaign ID.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Location: /advertiser/campaign/detail
Body
{
    status: true
}

Get types

Get types
GET/advertiser/campaign/types

This function will get campaign types.

Example URI

GET /advertiser/campaign/types
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Location: /advertiser/campaign/types
Body
{
    {
        "id": 1,
        "name": "Free Bee",
    },
    {
        "id": 2,
        "name": "Paid per Post",
    }
}

Get payments

Get payments
GET/advertiser/campaign/payments

This function will get campaign payment.

Example URI

GET /advertiser/campaign/payments
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Location: /advertiser/campaign/payments
Body
{
    {
        "id": 1,
        "name": "Fix",
    },
    {
        "id": 2,
        "name": "Individual",
    }
}

Get channels

Get channels
GET/advertiser/campaign/channels

This function will get campaign channels.

Example URI

GET /advertiser/campaign/channels
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Location: /advertiser/campaign/channels
Body
{
    {
        "id": 1,
        "name": "Youtube",
    },
    {
        "id": 2,
        "name": "Instagram",
    },
    {
        "id": 3,
        "name": "Blog",
    }
}

Get status

Get status
GET/advertiser/campaign/status

This function will get campaign status.

Example URI

GET /advertiser/campaign/status
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Location: /advertiser/campaign/status
Body
{
               {
                   "id": 10,
                   "name": "Planning",
                   "class": "bg-warning"
               },
               {
                   "id": 20,
                   "name": "Published",
                   "class": "bg-primary"
               },
               {
                   "id": 30,
                   "name": "Ready",
                   "class": "bg-success"
               },
               {
                     "id": 40,
                     "name": "Active",
                   "class": "bg-success"
               },
               {
                   "id": 50,
                   "name": "Finished",
                   "class": "bg-info"
               },
               {
                   "id": 60,
                   "name": "Paid",
                   "class": "bg-info"
               },
               {
                   "id": 90,
                   "name": "Deleted",
                   "class": "bg-danger"
               },
               {
                   "id": 91,
                   "name": "Storno",
                   "class": "bg-primary"
               }
    }

Get my campaign status

Get my campaigns status
GET/advertiser/campaign/mystatus

This function will show my campaign status.

Example URI

GET /advertiser/campaign/mystatus
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
    {
        id: 1,
        name: "New",
        icon: "fa fa-paper-plane-o"
    },
    {
        id: 2,
        name: "Active",
        icon: "fa fa-check"
    },
    {
        id: 3,
        name: "Rejected",
        icon: "fa fa-close"
    },
    {
        id: 4,
        name: "Applied",
        icon: "fa fa-check-square-o"
    }
}

Campaign media

Upload media for campaign
POST/advertiser/campaign/media

This function will upload media for a campaign.

Example URI

POST /advertiser/campaign/media
Request
HideShow
Headers
Content-Type: multipart/form-data
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="attachmentFile"; filename="$filename"
Content-Type: $mimetype

------WebKitFormBoundary7MA4YWxkTrZu0gW--

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="id"

1
------WebKitFormBoundary7MA4YWxkTrZu0gW--
Response  201
HideShow
Headers
Content-Type: application/json
Location: /advertiser/campaign/media
Body
{
  "status": true,
  "files": "/messages/DSD0tac8-_UY_-ZYUZ_F02tsetll0xzX.jpg"
}

Delete media for campaign
DELETE/advertiser/campaign/media

This function will delete media for a campaign.

Example URI

DELETE /advertiser/campaign/media
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
    "campaign": "1",
    "file": "/messages/DSD0tac8-_UY_-ZYUZ_F02tsetll0xzX.jpg",
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

Add influencer to campaign

Add influencer to campaign
POST/advertiser/campaign/addinfluencer

This function will add an influencer to a campaign

Example URI

POST /advertiser/campaign/addinfluencer
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
  "campaignId": 1,
  "influencerId": 1,
  "socialId": 1
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

Remove influencer from campaign

Remove influencer from campaign
POST/advertiser/campaign/removeinfluencer

This function will remove an influencer from a campaign

Example URI

POST /advertiser/campaign/removeinfluencer
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
    "campaignId": 1,
    "influencerId": 1
    "socialId": 1
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

Set price for influencer for a campaign

Set price for influencer for a campaign
POST/advertiser/campaign/setinfluencerprice

This function will set the price for an influencer for a campaign

Example URI

POST /advertiser/campaign/setinfluencerprice
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
  "campaignId": 1,
  "influencerId": 1,
  "socialId": 1,
  "price": 222
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

Resend E-Mail invitation

Resend E-Mail invitation
POST/advertiser/campaign/resendinvitation

This function will resend E-Mail invitation to the influencer

Example URI

POST /advertiser/campaign/resendinvitation
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
  "campaignId": 1,
  "influencerId": 1,
  "socialId": null
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

Get campaign overview settings

Get campaign overview settings
GET/advertiser/campaign/showoverview

This function will show campaign details.

Example URI

GET /advertiser/campaign/showoverview
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
      {
        "tab_id": 1,
        "name": "All",
        "class": "bg-primary",
        "id_to_show": [
          10,
          20,
          40,
          50
        ]
      },
      {
        "tab_id": 2,
        "name": "Planning",
        "class": "bg-primary",
        "id_to_show": [
          10
        ]
      },
      {
        "tab_id": 3,
        "name": "Published",
        "class": "bg-warning",
        "id_to_show": [
          20
        ]
      },
      {
        "tab_id": 4,
        "name": "Active",
        "class": "bg-success",
        "id_to_show": [
          40
        ]
      },
      {
        "tab_id": 5,
        "name": "Ended",
        "class": "bg-info",
        "id_to_show": [
          50
        ]
      },
      {
        "tab_id": 6,
        "name": "Paid",
        "class": "bg-info",
        "id_to_show": [
          60
        ]
      },
      {
        "tab_id": 7,
        "name": "Revoked",
        "class": "bg-danger",
        "id_to_show": [
          90,
          91
        ]
      }
}

Get public campaigns

Get public campaigns
GET/advertiser/campaign/public

This function will show public campaigns.

Example URI

GET /advertiser/campaign/public
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
[
      {
        "id": 2,
        "name": "Campaign 2 # Should not be shown on explore",
        "fix_price": null,
        "application_start": null,
        "application_end": null,
        "execution_start": 1593791477,
        "execution_end": 1596383477,
        "description": "Post a picture with sports car",
        "instructions": "Go to the car centre and post pictures inside a sports car.",
        "description_header": null,
        "instructions_header": null,
        "label": {
          "type": "Bezahlte Kampagne",
          "campaign_type": "Bezahlte Kampagne",
          "payment": "Individuell",
          "channel": "Instagram",
          "status": "Planung"
        },
        "type": 2,
        "media": [
          "http://api.yimify.local/files/campaign/campaignImage.jpeg"
        ]
      },
]

Application

Show application.

Show campaigns which have applications

Show campaigns which have applications
GET/advertiser/application/campaigns

This function will show campaigns which have applications.

Example URI

GET /advertiser/application/campaigns
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
    {
        "campaign_id": 4,
        "name": "Campaign 4 # Should not be shown on new",
        "media": [
          "/campaign/campaignImage.jpeg"
        ],
        "application_start": null,
        "application_end": null,
        "execution_start": 1546731027,
        "execution_end": 1549323027,
        "status": 10,
        "costs": null,
        "accepted": null,
        "rejected": 4,
        "new": 12
      },
}

Show applications for a campaign

Show applications for a campaign
GET/advertiser/application/campaign/{id}

This function will show applications for a campaign.

Example URI

GET /advertiser/application/campaign/id
URI Parameters
HideShow
id
number (required) 

Campaign ID.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "influencerId": 1,
  "socialId": 302755,
  "profile_picture": "/user/social/302755.jpg",
  "profile_name": "maximeee",
  "full_name": "Maxime Herbord",
  "channels": [
    "instagram"
  ],
  "followers": 53768,
  "engagements": 5757,
  "engagementrate": 10.70711203689927,
  "audience": {
    "male": 0.19152276295133439,
    "female": 0.8084772370486656
  },
  "location_by_country": [
    {
      "DE": 0.6924471299093655,
      "AT": 0.04350453172205438,
      "US": 0.03625377643504532
    }
  ],
  "age_split": {
    "13-17": 0.16764003765249866,
    "18-24": 0.591905734943879,
    "25-34": 0.1981081756658183,
    "35-44": 0.031683574050998135,
    "45-64": 0.010662477686805921
  },
  "interests": [
    "Pets",
    "Coffee, Tea & Beverages",
    "Shopping & Retail"
  ]
}

Accept application from an influencer

Accept application from an influencer
POST/advertiser/application/accept

This function will accept application from an influencer.

Example URI

POST /advertiser/application/accept
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
  "campaignId": 1,
  "influencerId": 1
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true,
  "message": "Application was granted successfully"
}

Reject application from an influencer

Reject application from an influencer
POST/advertiser/application/reject

This function will reject application from an influencer.

Example URI

POST /advertiser/application/reject
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
  "campaignId": 1,
  "influencerId": 1
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true,
  "message": "Application was rejected successfully"
}

Reject all applications for a campaign

Reject all applications for a campaign
POST/advertiser/application/rejectall

This function will reject all applications for a campaign.

Example URI

POST /advertiser/application/rejectall
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
  "campaignId": 1
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true,
  "message": "All applications were rejected successfully"
}

End application period for a campaign

End application period for a campaign
POST/advertiser/application/endapplication

This function will end application period for a campaign.

Example URI

POST /advertiser/application/endapplication
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
  "campaignId": 1
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true,
  "message": "Application period is over now"
}

Tracking

Show tracking of campaign

Shows campaign tracking overview

Shows campaign tracking overview
GET/advertiser/tracking

This function will show campaign tracking overview

Example URI

GET /advertiser/tracking
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
    [
                      {
                        "id": 1,
                        "name": "Campaign 1",
                        "type": 2,
                        "payment": 1,
                        "fix_price": "70.00",
                        "application": 3,
                        "application_start": 1538121675,
                        "application_end": 1540713675,
                        "execution_start": 1536393675,
                        "execution_end": 1537257675,
                        "description": "Post a picture with sports car",
                        "instructions": "Go to the car centre and post pictures inside a sports car.",
                        "channel": 2,
                        "influencers": null,
                        "reach": null,
                        "impressions": null,
                        "engagementrate": null,
                        "costs": null,
                        "label": {
                          "type": "Paid per Post",
                          "payment": "Fix",
                          "channel": "Instagram"
                        }
                      },
                      {
                        "id": 2,
                        "name": "Campaign 2",
                        "type": 2,
                        "payment": 2,
                        "fix_price": null,
                        "application": 2,
                        "application_start": null,
                        "application_end": null,
                        "execution_start": 1538121675,
                        "execution_end": 1540713675,
                        "description": "Post a picture with sports car",
                        "instructions": "Go to the car centre and post pictures inside a sports car.",
                        "channel": 2,
                        "influencers": null,
                        "reach": null,
                        "impressions": null,
                        "engagementrate": null,
                        "costs": null,
                        "label": {
                          "type": "Paid per Post",
                          "payment": "Individual",
                          "channel": "Instagram"
                        }
                      }
                ]
}

Shows campaign tracking

Shows campaign tracking
GET/advertiser/tracking/campaign/

This function will show campaign tracking

Example URI

GET /advertiser/tracking/campaign/
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
      {
          "influencer_user_id": 1,
          "image": "https://yimify.my-project.eu/files/campaign/campaign-1.png",
          "link": "https://www.instagram.com/p/BqstFNWn8-w/",
          "likes": 1233,
          "comments": 13
        },
        {
          "influencer_user_id": 1,
          "image": "https://yimify.my-project.eu/files/campaign/campaign-2.png",
          "link": "https://www.instagram.com/p/BqstFNWn8-w/",
          "likes": 1233,
          "comments": 13
        },
        {
          "influencer_user_id": 3,
          "image": "https://yimify.my-project.eu/files/campaign/campaign-3.png",
          "link": "https://www.instagram.com/p/BqstFNWn8-w/",
          "likes": 1233,
          "comments": 13
        },
}

List

Allow to add influencers to (favorite) lists

Shows lists

Shows lists
GET/advertiser/list/getlists

This function will show all lists

Example URI

GET /advertiser/list/getlists
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
    {
        "id": 1,
        "name": "Favorites"
      },
      {
        "id": 2,
        "name": "Good ones"
      }
}

Delete list

Delete list
POST/advertiser/list/deletelist/{id}

This function will show all lists

Example URI

POST /advertiser/list/deletelist/id
URI Parameters
HideShow
id
number (required) 

List ID.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

Add list

Add list
POST/advertiser/list/addlist

This function will add an influencer to a list

Example URI

POST /advertiser/list/addlist
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
  "name": "new list"
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

Show items

Show items
GET/advertiser/list/getitems/{id}

This function will show all items of a list

Example URI

GET /advertiser/list/getitems/id
URI Parameters
HideShow
id
number (required) 

List ID.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
     {
        "profile_picture": "/user/social/447.jpg",
        "profile_name": "properadventure",
        "full_name": "Proper Adventure | Scotland",
        "channels": [
          "instagram",
          "youtube"
        ],
        "followers": 47536,
        "engagements": 802,
        "engagementrate": 1.6871423763042748,
        "audience": {
          "male": 0.5273858921161826,
          "female": 0.4726141078838174
        },
        "location_by_country": [
          {
            "GB": 0.3489242282507016,
            "US": 0.1403180542563143,
            "BR": 0.047708138447146865
          }
        ],
        "age_split": {
          "13-17": 0.11404394397750847,
          "18-24": 0.3468169541362831,
          "25-34": 0.36474311970551715,
          "35-44": 0.10960385569160362,
          "45-64": 0.06257208234613529,
          "65+": 0.002220044142952419
        },
        "interests": [
          "Shopping & Retail",
          "Music",
          "Travel, Tourism & Aviation"
        ]
      },
      {
        "profile_picture": "/user/social/1004.jpg",
        "profile_name": "sazzy",
        "full_name": "Sarah Parmenter",
        "channels": [
          "instagram",
          "youtube"
        ],
        "followers": 17331,
        "engagements": 227,
        "engagementrate": 1.3097917027292136,
        "audience": {
          "male": 0.6326530612244898,
          "female": 0.3673469387755102
        },
        "location_by_country": [
          {
            "US": 0.28733997155049784,
            "GB": 0.22048364153627312,
            "IN": 0.044096728307254626
          }
        ],
        "age_split": {
          "13-17": 0.14205401167708526,
          "18-24": 0.29301541127684594,
          "25-34": 0.392528522209156,
          "35-44": 0.11905572404117927,
          "45-64": 0.05334633079573353
        },
        "interests": [
          "Electronics & Computers",
          "Coffee, Tea & Beverages",
          "Activewear"
        ]
      },
}

Add influencer to list

Add influencer to list
POST/advertiser/list/addtolist

This function will add an influencer to a list

Example URI

POST /advertiser/list/addtolist
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
  "list": 1,
  "influencerId": 1,
  "socialId": 1
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

Remove influencer from list

Remove influencer from list
POST/advertiser/list/removefromlist

This function will remove an influencer from a list

Example URI

POST /advertiser/list/removefromlist
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
  "list": 1,
  "influencerId": 1,
  "socialId": 1
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

News

Get news.

Get news categories

Get news categories
GET/news/categories

This function will show the news categories.

Example URI

GET /news/categories
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Location: /news/categories
Body
{
      {
            "id": 1,
            "name": "News",
      },
      {
            "id": 2,
            "name": "Marketing",
      },
      {
            "id": 3,
            "name": "Education",
      },
}

Get news

Get news
GET/news?{type,category}

This function will show the news.

Example URI

GET /news?type&category
URI Parameters
HideShow
type
number (optional) 

Type ID (1=Influencer, 2=Agency).

category
number (optional) 

Category ID.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Location: /news
Body
{
    "text": "This is the news text",
    "files": {
        "New Brochure" => "https://demourl.de/files/file.pdf"
        "New Video" => "https://www.youtube.com/"
    }
}

Notifications

Get notifications.

Notification

Get notifications
GET/notification/list

This function will show all notifications

Example URI

GET /notification/list
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
    {
        "id": 1,
        "name": "campaign",
        "count": 1
      },
      {
        "id": 2,
        "name": "dashboard",
        "count": 2
      },
      {
        "id": 3,
        "name": "message",
        "count": 4
      }
}

Delete notification

Delete notification
DELETE/notification/delete/{id}

This function will delete a notification

Example URI

DELETE /notification/delete/id
URI Parameters
HideShow
id
number (required) 

Notification ID.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

Message

Get messages.

Get campaigns

Get the campaigns where messages are available
GET/advertiser/message/campaigns

This function will show the campaigns where messages are available.

Example URI

GET /advertiser/message/campaigns
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Location: /advertiser/message/campaigns
Body
{
      {
            "campaign_id": 1,
            "name": "Campaign 1",
            "new": 2,
            "last_message": 1547561364,
            "influencers": 2,
            "execution_start": 1504280674,
            "execution_end": 1505490274,
            "image": "/campaign/campaignImage.jpeg",
      },
      {
            "campaign_id": 2,
            "name": "Campaign 2",
            "new": 0,
            "last_message": 1547561364,
            "influencers": 5,
            "execution_start": 1504280674,
            "execution_end": 1505490274,
            "image": "/campaign/campaignImage.jpeg",
      },
      {
            "campaign_id": 3,
            "name": "Campaign 3",
            "new": 0,
            "last_message": 1547561364,
            "influencers": 7,
            "execution_start": 1504280674,
            "execution_end": 1505490274,
            "image": "/campaign/campaignImage.jpeg"
      },
}

Get influencers

Get the influencers for a campaign where messages are available
GET/advertiser/message/influencers?{campaignId}

This function will show the influencers where messages are available.

Example URI

GET /advertiser/message/influencers?campaignId
URI Parameters
HideShow
campaignId
number (required) 

Campaign ID.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Location: /advertiser/message/influencers
Body
{
      {
            "influencer_id": 1,
            "name": "Influencer 1",
            "new": 1,
            "image": "/influencer/influencerImage.jpeg",
      },
      {
            "influencer_id": 2,
            "name": "Influencer 2",
            "new": 1,
            "image": "/influencer/influencerImage.jpeg",
      },
      {
            "influencer_id": 3,
            "name": "Influencer 3",
            "new": 1,
            "image": "/influencer/influencerImage.jpeg",
      },
}

Get messages

Get messages
GET/advertiser/message/conversation/?{campaignId,influencerId}

This function will show the conversation for a specific campaign with a specific influencer.

Example URI

GET /advertiser/message/conversation/?campaignId&influencerId
URI Parameters
HideShow
campaignId
number (required) 

Campaign ID.

influencerId
number (required) 

Influencer ID.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
    {
        "id": 1,
        "campaign_id": 1,
        "influencer_user_id": 1,
        "advertiser_id": 1,
        "sender": 2,
        "message": "We would like you to join our campaign",
        "files": "",
        "is_read": 1,
        "created:_at": 154545454
    },
    {
        "id": 2,
        "campaign_id": 1,
        "influencer_user_id": 1,
        "advertiser_id": 1,
        "sender": 1,
        "message": "I reviewd your campaign. It looks nice. How much will i get for it?",
        "files": "",
        "is_read": 0,
        "created:_at": 154545454
    },
}

Read message

Read message
POST/advertiser/message/read/{id}

This function will mark a message as read.

Example URI

POST /advertiser/message/read/id
URI Parameters
HideShow
id
number (required) 

Message ID.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

Unread messages

Unread message
GET/advertiser/message/unread({id}

This function will mark a message as read.

Example URI

GET /advertiser/message/unread(id
URI Parameters
HideShow
id
number (required) 

Campaign ID.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "unread": 5
}

Create message

Create message
POST/advertiser/message/create

This function will create a message for a specific campaign.

Example URI

POST /advertiser/message/create
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
  "campaignId": 1,
  "influencerId": 1,
  "message": "Yes i wil do this. Thank you."
}
Response  201
HideShow
Headers
Content-Type: application/json
Location: /advertiser/message/create
Body
{
  "status": true,
  "message": {
    "campaign_id": 1,
    "influencer_user_id": "1",
    "advertiser_id": 1,
    "sender": 2,
    "message": "test 12",
    "files": "[]",
    "created_at": 1581943873,
    "id": 372
  }
}

Create an announcement

Create an announcement
POST/advertiser/message/announcement

This function will create an announcement for a specific campaign.

Example URI

POST /advertiser/message/announcement
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
  "campaignId": 1,
  "message": "Message for all. Please listen...."
}
Response  201
HideShow
Headers
Content-Type: application/json
Location: /advertiser/message/announcement
Body
{
  "status": true
}

Upload media for message

Upload media for message
POST/advertiser/message/media

This function will upload media for a message.

Example URI

POST /advertiser/message/media
Request
HideShow
Headers
Content-Type: multipart/form-data
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="attachmentFile"; filename="$filename"
Content-Type: $mimetype

------WebKitFormBoundary7MA4YWxkTrZu0gW--

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="campaignId"

1
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="influencerId"

1
------WebKitFormBoundary7MA4YWxkTrZu0gW--
Response  201
HideShow
Headers
Content-Type: application/json
Location: /advertiser/message/media
Body
{
  "status": true,
  "id": 1,
  "files": "/messages/DSD0tac8-_UY_-ZYUZ_F02tsetll0xzX.jpg"
}

Profile

Show profile.

Profile data

Get profile data
GET/advertiser/profile/data

This function will get the values for address data for influencer.

Example URI

GET /advertiser/profile/data
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
          "picture": "",
          "street": "Josef-Felder-Straße",
          "number": "53",
          "zipcode": "81241" ,
          "location": "München",
          "country": "Germany",
          "vat_id": "DE34343",
          "iban": "DE34343",
          "bic": "GDE565454",
          "paypal": "email@paypal.de",
          "preferred_payment" =>  1,
}

Set profile data
POST/advertiser/profile/data

This function will set profile data for advertiser.

Example URI

POST /advertiser/profile/data
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
           "street": "Josef-Felder-Straße",
           "number": "53",
           "zipcode": "81241" ,
           "location": "München",
           "country": "Germany",
           "vat_id": "DE34343",
           "iban": "DE34343",
           "bic": "GDE565454",
           "paypal": "email@paypal.de",
           "preferred_payment" =>  1,
}
Response  200
HideShow
Headers
Content-Type: application/json
Location: /influencer/profile/personal
Body
{
          "status": true,
    }

Advertiser image

Upload advertiser image
POST/advertiser/profile/image

This function will upload a advertiser image.

Example URI

POST /advertiser/profile/image
Request
HideShow
Headers
Content-Type: multipart/form-data
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="attachmentFile"; filename="$filename"
Content-Type: $mimetype

------WebKitFormBoundary7MA4YWxkTrZu0gW--
Response  201
HideShow
Headers
Content-Type: application/json
Location: /advertiser/profile/image
Body
{
  "picture": "/user/profile/j0HORiNBfj_aMInJ640gFGYEE3LK9oCv.jpg"
}

Delete advertiser image
DELETE/advertiser/profile/image

This function will delete the advertiser image.

Example URI

DELETE /advertiser/profile/image
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
          "status": true,
    }

Get payment

Get payment
GET/advertiser/profile/payment

This function will get payments.

Example URI

GET /advertiser/profile/payment
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "1": "Sepa",
  "2": "Credit card"
}

Source

Get source
GET/advertiser/profile/source

This function will get source.

Example URI

GET /advertiser/profile/source
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "preferred_payment": 2,
  "payment": {
    "type": "Credit card",
    "image": "path/to/image.png",
    "name": "Visa",
    "last4": "4242"
  }
}

Set source
POST/advertiser/profile/source

This function will set source.

Example URI

POST /advertiser/profile/source
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
      "source": "source from stripe",
      "image": "path/to/image.png",
      "stripe_response": {
                            "id":"src_1DMbIA2eZvKYlo2C8lE2ytJS",
                            "object":"source",
                            "amount":null,
                            "client_secret":"src_client_secret_DoDjdrRJMPAorQo3mP46SqIl",
                            "created":1539868318,
                            "currency":"eur",
                            "flow":"none",
                            "livemode":false,
                            "mandate":{
                               "acceptance":{
                                  "date":null,
                                  "ip":null,
                                  "status":"pending",
                                  "user_agent":null
                               },
                               "notification_method":"email",
                               "reference":"XZ1KOEGXGKZXAVWR",
                               ...
                            }
                        }
      "preferred_payment": 1,
    }
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

Delete source
DELETE/advertiser/profile/source

This function will delete source.

Example URI

DELETE /advertiser/profile/source
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

Source

Get Cardsecret
GET/advertiser/profile/cardsecret

This function will set get cardsecret.

Example URI

GET /advertiser/profile/cardsecret
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "client_secret": "ses_1_fasdfds_111"
}

Source

Set card
POST/advertiser/profile/card

This function will set card.

Example URI

POST /advertiser/profile/card
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
      "source": "source from stripe",
      "image": "path/to/image.png",
      "stripe_response": {
                            "id":"src_1DMbIA2eZvKYlo2C8lE2ytJS",
                            "object":"source",
                            "amount":null,
                            "client_secret":"src_client_secret_DoDjdrRJMPAorQo3mP46SqIl",
                            "created":1539868318,
                            "currency":"eur",
                            "flow":"none",
                            "livemode":false,
                            "mandate":{
                               "acceptance":{
                                  "date":null,
                                  "ip":null,
                                  "status":"pending",
                                  "user_agent":null
                               },
                               "notification_method":"email",
                               "reference":"XZ1KOEGXGKZXAVWR",
                               ...
                            }
                        }
      "preferred_payment": 1,
      "client_secret": "ses_1_fasdfds_111"
    }
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

Delete card
DELETE/advertiser/profile/card

This function will delete card.

Example URI

DELETE /advertiser/profile/card
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

Influencer

Show influencer.

Shows big setcard for influencer

Shows big setcard for influencer
GET/advertiser/influencer/bigsetcard/{channel}/{id}

This function will return the big setcard for an influencer.

Example URI

GET /advertiser/influencer/bigsetcard/channel/id
URI Parameters
HideShow
channel
string (required) 

Channel name.

id
int (required) 

Social id.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "influencerId": null,
  "socialId": 3145732971,
  "profile_picture": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/34731854_182359409273358_6339304529837686784_n.jpg",
  "profile_name": "amara__beauty",
  "full_name": "BY M E R Y E M  F E R K U S",
  "channels": [
    "instagram"
  ],
  "followers": 9129,
  "engagements": 245,
  "engagementrate": "0.02683755066272300000",
  "is_business": 1,
  "audience": {
    "male": 0.593803572314679,
    "female": 0.406196427685321
  },
  "location_by_country": [
    {
      "BR": 0.34984756097560976,
      "TR": 0.1798780487804878,
      "ID": 0.08650914634146341,
      "IN": 0.0857469512195122
    }
  ],
  "location_by_cities": [
    [
      {
        "id": 223474,
        "name": "Istanbul",
        "country": "TR",
        "precentage": 0.06516768292682927
      },
      {
        "id": 298285,
        "name": "São Paulo",
        "country": "BR",
        "precentage": 0.04382621951219512
      },
      {
        "id": 2220779,
        "name": "Rio de Janeiro",
        "country": "BR",
        "precentage": 0.028201219512195123
      },
      {
        "id": 62578,
        "name": "Cologne",
        "country": "DE",
        "precentage": 0.023628048780487805
      }
    ]
  ],
  "age_split": {
    "13-17": {
      "FEMALE": 0.11712138842645863,
      "MALE": 0.16415736336580203
    },
    "18-24": {
      "FEMALE": 0.1953019880119133,
      "MALE": 0.23684347366952577
    },
    "25-34": {
      "FEMALE": 0.07868780994635587,
      "MALE": 0.14355844040322271
    },
    "35-44": {
      "FEMALE": 0.010706362635865958,
      "MALE": 0.031940032817282527
    },
    "45-64": {
      "FEMALE": 0.004378878664727343,
      "MALE": 0.017304262058846
    }
  },
  "influencer_interests": [
    "Entertainment",
    "Beauty",
    "Fashion"
  ],
  "audience_interests": {
    "Fashion": 0.38192011212333565,
    "Family": 0.2620882971268395,
    "Photography": 0.25227750525578135,
    "Beauty": 0.2501751927119832,
    "Music": 0.24456902592852137
  },
  "hashtags": {
    "permanentmakeup": 0.6870748299319728,
    "düsseldorf": 0.5170068027210885,
    "microblading": 0.5034013605442177,
    "leverkusen": 0.4965986394557823,
    "follow": 0.48299319727891155
  },
  "mentions": {
    "hudabeauty": 0.34375,
    "swisscolor": 0.328125,
    "dilankorkurt_photography": 0.21875,
    "beyonce": 0.1875,
    "shakira": 0.171875
  },
  "popular_posts": [
    {
      "user_id": "3145732971",
      "username": "amara__beauty",
      "user_picture": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/34731854_182359409273358_6339304529837686784_n.jpg",
      "user_url": "https://www.instagram.com/amara__beauty",
      "type": "photo",
      "post_id": "1668493138569017274_3145732971",
      "created": "2017-12-12T23:05:03.000+0000",
      "text": "Hey ihr Lieben, \nich habe meine Seite komplett Neu bearbeitet ich freue mich über Kommentare.❤🙏🏽 Bald gibt es ein Gewinnspiel mit meiner Schwester @dilankorkurt_photography bleibt auf dem laufenden.\n\nLiebe Grüße \nMeryem Ferkus\n\nOutfit: @asos , @zara \nMake-up Produkte: @esteelauder , @essence_cosmetics , @hudabeauty, @lorealmakeup @marykay.deutschland @@danielwellington #hudabeautyfoundation \n#fotoshooting #fotografie #kosmetik #beautyblogger #lifestyleblogger #lifestyle #beautytips #makeuptutorial #haarentfernung #shrhaarentfernung #wimpernverlängerung #eyelashesextension #volumentechnik #volumelashes #kalicimakyaj #permanentmakeup Microblading",
      "image": "https://images.erseco-grupa.com/?https://scontent-arn2-1.cdninstagram.com/t51.2885-15/e35/25009495_727994277389607_2663505178132480000_n.jpg",
      "thumbnail": "https://images.erseco-grupa.com/?https://scontent-arn2-1.cdninstagram.com/t51.2885-15/e35/s240x240/25009495_727994277389607_2663505178132480000_n.jpg",
      "link": "https://www.instagram.com/p/BcnratilTe6/",
      "mentions": [
        "beyonce",
        "kimkardashian",
        "outfitselfie",
        "asos",
        "danielwellington",
        "dilankorkurt_photography",
        "essence_cosmetics",
        "esteelauder",
        "hudabeauty",
        "lorealmakeup",
        "marykay.deutschland",
        "zara",
        "shakira",
        "berguzarkorels"
      ],
      "hashtags": [
        "hudabeautyfoundation",
        "fotoshooting",
        "fotografie",
        "kosmetik",
        "beautyblogger",
        "lifestyleblogger",
        "lifestyle",
        "beautytips",
        "makeuptutorial",
        "haarentfernung",
        "shrhaarentfernung",
        "wimpernverlängerung",
        "eyelashesextension",
        "volumentechnik",
        "volumelashes",
        "kalicimakyaj",
        "permanentmakeup"
      ],
      "stat": {
        "likes": 841,
        "comments": 27
      }
    },
    {
      "user_id": "3145732971",
      "username": "amara__beauty",
      "user_picture": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/34731854_182359409273358_6339304529837686784_n.jpg",
      "user_url": "https://www.instagram.com/amara__beauty",
      "type": "photo",
      "post_id": "1668908986471522337_3145732971",
      "created": "2017-12-13T12:51:16.000+0000",
      "text": "❤ Bald gibt es ein Gewinnspiel mit meiner Schwester @dilankorkurt_photography bleibt auf dem laufenden.\n\nLiebe Grüße \nMeryem Ferkus\n\nOutfit: @asos , @zara \nMake-up By @sidabeauty \nMake-up Produkte: @esteelauder , @essence_cosmetics , @hudabeauty, @lorealmakeup @marykay.deutschland @@danielwellington #hudabeautyfoundation \n#fotoshooting #fotografie #kosmetik #beautyblogger #lifestyleblogger #lifestyle #beautytips #makeuptutorial #haarentfernung #shrhaarentfernung #wimpernverlängerung #eyelashesextension #volumentechnik #volumelashes #kalicimakyaj #permanentmakeup #Microblading #hudabeauty #blackhair",
      "image": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-15/e35/25012330_1181783061953485_7566209805350600704_n.jpg",
      "thumbnail": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-15/e35/p240x240/25012330_1181783061953485_7566209805350600704_n.jpg",
      "link": "https://www.instagram.com/p/BcpJ-GFF6Ah/",
      "mentions": [
        "berguzarkorels",
        "beyonce",
        "kimkardashian",
        "outfitselfie",
        "asos",
        "danielwellington",
        "dilankorkurt_photography",
        "essence_cosmetics",
        "esteelauder",
        "hudabeauty",
        "lorealmakeup",
        "marykay.deutschland",
        "sidabeauty",
        "zara",
        "shakira"
      ],
      "hashtags": [
        "hudabeautyfoundation",
        "fotoshooting",
        "fotografie",
        "kosmetik",
        "beautyblogger",
        "lifestyleblogger",
        "lifestyle",
        "beautytips",
        "makeuptutorial",
        "haarentfernung",
        "shrhaarentfernung",
        "wimpernverlängerung",
        "eyelashesextension",
        "volumentechnik",
        "volumelashes",
        "kalicimakyaj",
        "permanentmakeup",
        "Microblading",
        "hudabeauty",
        "blackhair"
      ],
      "stat": {
        "likes": 742,
        "comments": 12
      }
    },
    {
      "user_id": "3145732971",
      "username": "amara__beauty",
      "user_picture": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/34731854_182359409273358_6339304529837686784_n.jpg",
      "user_url": "https://www.instagram.com/amara__beauty",
      "type": "photo",
      "post_id": "1670663283471203463_3145732971",
      "created": "2017-12-15T22:56:44.000+0000",
      "text": "Gute Nacht ihr Lieben❤ Ich genieße das Wochenende mit meinem Mann @kartalsadik1903  und meiner hübschen Tochter Amara, genießt jeden Tag  mit euren Liebsten ❤❤ 🙏🏽 #outfitselfie #drmartens #hudabeautydesertdusk #longhair #köln #düsseldorf #Leverkusen #lifestyle #fitness #beautyblogger #kalicikas #microblading #wimpernverlängerung #wimpernverdichtungköln #beautyschool #gesichtsbehandlung #follow #takip #like #like #smile #mama #happilymarried #myfamily #hudabeauty #lashes #makeuptutorial #makeup #style #kleiderkreisel @outfitselfie",
      "image": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-15/e35/25016449_1577545745664205_1301807207347650560_n.jpg",
      "thumbnail": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-15/e35/s240x240/25016449_1577545745664205_1301807207347650560_n.jpg",
      "link": "https://www.instagram.com/p/BcvY2eelryH/",
      "mentions": [
        "kartalsadik1903",
        "outfitselfie",
        "shakira",
        "jlo",
        "hudabeauty",
        "kourtneykardash",
        "beyonce",
        "kimkardashian"
      ],
      "hashtags": [
        "outfitselfie",
        "drmartens",
        "hudabeautydesertdusk",
        "longhair",
        "köln",
        "düsseldorf",
        "Leverkusen",
        "lifestyle",
        "fitness",
        "beautyblogger",
        "kalicikas",
        "microblading",
        "wimpernverlängerung",
        "wimpernverdichtungköln",
        "beautyschool",
        "gesichtsbehandlung",
        "follow",
        "takip",
        "like",
        "smile",
        "mama",
        "happilymarried",
        "myfamily",
        "hudabeauty",
        "lashes",
        "makeuptutorial",
        "makeup",
        "style",
        "kleiderkreisel"
      ],
      "stat": {
        "likes": 642,
        "comments": 9
      }
    }
  ],
  "sponsored_posts": [],
  "follower_credibility": "0.22612261226123000000",
  "follower_credibility_class": "bad",
  "like_credibility": "0.71650000000000000000",
  "like_credibility_class": "bad",
  "likes_not_from_followers": "0.59861234343",
  "average_likes": 234,
  "stat_history": [
    {
      "month": "2018-11",
      "followers": 9088,
      "following": 304,
      "avg_likes": 198
    },
    {
      "month": "2018-12",
      "followers": 9097,
      "following": 311,
      "avg_likes": 204
    },
    {
      "month": "2019-01",
      "followers": 9191,
      "following": 281,
      "avg_likes": 232
    },
    {
      "month": "2019-02",
      "followers": 9143,
      "following": 270,
      "avg_likes": 236
    },
    {
      "month": "2019-03",
      "followers": 9155,
      "following": 345,
      "avg_likes": 227
    },
    {
      "month": "2019-04",
      "followers": 9126,
      "following": 357,
      "avg_likes": 230
    },
    {
      "month": "2019-05",
      "followers": 9129,
      "following": 352,
      "avg_likes": 234
    }
  ],
  "engagement_rate_histogram": [
    {
      "max": 0.002662879460323096,
      "total": 543392
    },
    {
      "min": 0.002662879460323096,
      "max": 0.006969205834683955,
      "total": 434713
    },
    {
      "min": 0.006969205834683955,
      "max": 0.011423039690222653,
      "total": 362238
    },
    {
      "min": 0.011423039690222653,
      "max": 0.01605543349670441,
      "total": 310480
    },
    {
      "min": 0.01605543349670441,
      "max": 0.0208110992529349,
      "total": 271696
    },
    {
      "min": 0.0208110992529349,
      "max": 0.025766251263051532,
      "total": 241537,
      "median": true
    },
    {
      "min": 0.025766251263051532,
      "max": 0.03101424979044426,
      "total": 217356
    },
    {
      "min": 0.03101424979044426,
      "max": 0.03656876094145108,
      "total": 197591
    },
    {
      "min": 0.03656876094145108,
      "max": 0.04250597473540457,
      "total": 181153
    },
    {
      "min": 0.04250597473540457,
      "max": 0.048944848377371876,
      "total": 167229
    },
    {
      "min": 0.048944848377371876,
      "max": 0.05606219165794588,
      "total": 155274
    },
    {
      "min": 0.05606219165794588,
      "max": 0.06397212543554007,
      "total": 144882
    },
    {
      "min": 0.06397212543554007,
      "max": 0.07297892418999685,
      "total": 135848
    },
    {
      "min": 0.07297892418999685,
      "max": 0.08345895573523365,
      "total": 127833
    },
    {
      "min": 0.08345895573523365,
      "max": 0.09601873536299765,
      "total": 120768
    },
    {
      "min": 0.09601873536299765,
      "max": 0.11156661786237189,
      "total": 114384
    },
    {
      "min": 0.11156661786237189,
      "max": 0.13198154443904808,
      "total": 108678
    },
    {
      "min": 0.13198154443904808,
      "max": 0.16178367422148518,
      "total": 103516
    },
    {
      "min": 0.16178367422148518,
      "max": 0.21905727318803853,
      "total": 98829
    },
    {
      "min": 0.21905727318803853,
      "total": 94491
    }
  ],
  "relevant_tags": [
    {
      "tag": "härchenzeichnung",
      "distance": 0.23608516156673431,
      "freq": 6.429719478039138
    },
    {
      "tag": "härchentechnik",
      "distance": 0.290370374917984,
      "freq": 5.648974238161206
    },
    {
      "tag": "augenbrauen",
      "distance": 0.3546176254749298,
      "freq": 8.032035314398824
    },
    {
      "tag": "wimpernverlängerung",
      "distance": 0.37079954147338867,
      "freq": 8.249575150000199
    },
    {
      "tag": "wimpernlifting",
      "distance": 0.38137876987457275,
      "freq": 7.400620577371135
    },
    {
      "tag": "schöneaugenbrauen",
      "distance": 0.3821612000465393,
      "freq": 4.382026634673881
    },
    {
      "tag": "pigmentierung",
      "distance": 0.3948028087615967,
      "freq": 5.799092654460526
    },
    {
      "tag": "augenbrauenkorrektur",
      "distance": 0.3951396346092224,
      "freq": 4.912654885736052
    },
    {
      "tag": "güzellik",
      "distance": 0.4006660282611847,
      "freq": 7.544861068658458
    },
    {
      "tag": "kosmetikstudio",
      "distance": 0.40484440326690674,
      "freq": 7.1459844677143876
    },
    {
      "tag": "lippenpigmentierung",
      "distance": 0.4069812595844269,
      "freq": 5.752572638825633
    },
    {
      "tag": "luxuslashes",
      "distance": 0.41160574555397034,
      "freq": 5.749392985908253
    },
    {
      "tag": "kosmetik",
      "distance": 0.41828352212905884,
      "freq": 9.242807562113684
    },
    {
      "tag": "schulungen",
      "distance": 0.4207284152507782,
      "freq": 5.796057750765372
    },
    {
      "tag": "wimperverlängerung",
      "distance": 0.42096376419067383,
      "freq": 4.795790545596741
    },
    {
      "tag": "augenbrauenformen",
      "distance": 0.42227330803871155,
      "freq": 6.077642243349034
    },
    {
      "tag": "augenbraun",
      "distance": 0.42330485582351685,
      "freq": 5.117993812416755
    },
    {
      "tag": "zufriedenekundin",
      "distance": 0.42353808879852295,
      "freq": 4.23410650459726
    },
    {
      "tag": "wimpernextensions",
      "distance": 0.433749794960022,
      "freq": 7.383989457978509
    },
    {
      "tag": "wimpernkranzverdichtung",
      "distance": 0.4338027536869049,
      "freq": 5.10594547390058
    },
    {
      "tag": "naturwimpern",
      "distance": 0.4369003474712372,
      "freq": 4.700480365792417
    },
    {
      "tag": "vorhernacher",
      "distance": 0.43741539120674133,
      "freq": 6.1463292576688975
    },
    {
      "tag": "augenbrauenpigmentierung",
      "distance": 0.44368892908096313,
      "freq": 5.6937321388027
    },
    {
      "tag": "hanadibeauty",
      "distance": 0.44826462864875793,
      "freq": 6.626717749249025
    },
    {
      "tag": "kundin",
      "distance": 0.44907093048095703,
      "freq": 5.7430031878094825
    },
    {
      "tag": "kundenzufriedenheit",
      "distance": 0.4550734758377075,
      "freq": 5.953243334287785
    },
    {
      "tag": "zahnbleaching",
      "distance": 0.4554365873336792,
      "freq": 5.823045895483019
    },
    {
      "tag": "permanentmakeup",
      "distance": 0.45573604106903076,
      "freq": 10.289260027298557
    },
    {
      "tag": "dauerhaftehaarentfernung",
      "distance": 0.45581722259521484,
      "freq": 5.996452088619021
    },
    {
      "tag": "volumentechnik",
      "distance": 0.4560101330280304,
      "freq": 6.79346613258001
    }
  ],
  "engagement_spread": [
    {
      "user_id": "3145732971",
      "username": "amara__beauty",
      "user_picture": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/34731854_182359409273358_6339304529837686784_n.jpg",
      "user_url": "https://www.instagram.com/amara__beauty",
      "type": "photo",
      "post_id": "1997276460779486956_3145732971",
      "created": "2019-03-11T14:18:49.000+0000",
      "text": "Vorher-Nachher 🖤🖤🖤Für Termine über DM oder 0177/8601990\n\n#kalicimakyaj #permanentmakeup #härchenzeichnung #härchentechnik #microblading #nanotechnik #swisscolor #pmu #eyebrows #augenbrauen #kilteknigikaş #beauty #beautyblogger #lifestyle #follow #like #takip #begen #meinearbeit #folgen #köln #düsseldorf #instagood #vorhernachher #instadaily #hudabeauty #beautytips #sale #amarabeauty #leverkusen #swisscolor @swisscolor_international",
      "link": "https://www.instagram.com/p/Bu3wFvrAr7s/",
      "mentions": [
        "swisscolor_international"
      ],
      "hashtags": [
        "kalicimakyaj",
        "permanentmakeup",
        "härchenzeichnung",
        "härchentechnik",
        "microblading",
        "nanotechnik",
        "swisscolor",
        "pmu",
        "eyebrows",
        "augenbrauen",
        "kilteknigikaş",
        "beauty",
        "beautyblogger",
        "lifestyle",
        "follow",
        "like",
        "takip",
        "begen",
        "meinearbeit",
        "folgen",
        "köln",
        "düsseldorf",
        "instagood",
        "vorhernachher",
        "instadaily",
        "hudabeauty",
        "beautytips",
        "sale",
        "amarabeauty",
        "leverkusen"
      ],
      "stat": {
        "likes": 171,
        "comments": 8
      }
    },
    {
      "user_id": "3145732971",
      "username": "amara__beauty",
      "user_picture": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/34731854_182359409273358_6339304529837686784_n.jpg",
      "user_url": "https://www.instagram.com/amara__beauty",
      "type": "photo",
      "post_id": "1949334224544945868_3145732971",
      "created": "2019-01-04T10:46:09.000+0000",
      "text": "Mein größtes Glück sagt Mama zu mir💞💞💞#muttertochter #baby #princess #beauty #beautygirl #leverkusen #köln #düsseldorf #family #kosmetikstudio #liebe #fotografie #beauty #wimpernverlängerungleverkusen #microbladingleverkusen #permanentmakeupleverkusen #like #comment #likeforlike",
      "link": "https://www.instagram.com/p/BsNbSYyg1bM/",
      "hashtags": [
        "muttertochter",
        "baby",
        "princess",
        "beauty",
        "beautygirl",
        "leverkusen",
        "köln",
        "düsseldorf",
        "family",
        "kosmetikstudio",
        "liebe",
        "fotografie",
        "wimpernverlängerungleverkusen",
        "microbladingleverkusen",
        "permanentmakeupleverkusen",
        "like",
        "comment",
        "likeforlike"
      ],
      "stat": {
        "likes": 427,
        "comments": 44
      }
    },
    {
      "user_id": "3145732971",
      "username": "amara__beauty",
      "user_picture": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/34731854_182359409273358_6339304529837686784_n.jpg",
      "user_url": "https://www.instagram.com/amara__beauty",
      "type": "photo",
      "post_id": "1911699192619812235_3145732971",
      "created": "2018-11-13T12:32:04.000+0000",
      "text": "Love my Job 🌹 Für Termine 01778601990 ☘️#vorhernachhereffekt #härchenzeichnung #swisscolor #swisscolortrainer #permanentmakeup #permanentmakeupartist #permanenmakeupbrows #beauty #zahnbleaching #zahnbleichen #härchenzeichnung #microblading #beautytips #beautyblog",
      "link": "https://www.instagram.com/p/BqHuEl9gUWL/",
      "hashtags": [
        "vorhernachhereffekt",
        "härchenzeichnung",
        "swisscolor",
        "swisscolortrainer",
        "permanentmakeup",
        "permanentmakeupartist",
        "permanenmakeupbrows",
        "beauty",
        "zahnbleaching",
        "zahnbleichen",
        "microblading",
        "beautytips",
        "beautyblog"
      ],
      "stat": {
        "likes": 193,
        "comments": 20
      }
    },
    {
      "user_id": "3145732971",
      "username": "amara__beauty",
      "user_picture": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/34731854_182359409273358_6339304529837686784_n.jpg",
      "user_url": "https://www.instagram.com/amara__beauty",
      "type": "photo",
      "post_id": "1907553658679975181_3145732971",
      "created": "2018-11-07T19:15:38.000+0000",
      "text": "Zahnbleaching ❤️ 89,00€ ❤️ Termine unter 01778601990❤️ #zahnbleaching #zahnbleichen #beauty #vorhernachhereffekt #köln #Leverkusen #Köln #Düsseldorf #gesichtsbehandlung #härchenzeichnung #swisscolor #kosmetischezahnaufhellung",
      "link": "https://www.instagram.com/p/Bp4_fInnd0N/",
      "hashtags": [
        "zahnbleaching",
        "zahnbleichen",
        "beauty",
        "vorhernachhereffekt",
        "köln",
        "Leverkusen",
        "Köln",
        "Düsseldorf",
        "gesichtsbehandlung",
        "härchenzeichnung",
        "swisscolor",
        "kosmetischezahnaufhellung"
      ],
      "stat": {
        "likes": 179,
        "comments": 2
      }
    },
    {
      "user_id": "3145732971",
      "username": "amara__beauty",
      "user_picture": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/34731854_182359409273358_6339304529837686784_n.jpg",
      "user_url": "https://www.instagram.com/amara__beauty",
      "type": "photo",
      "post_id": "1901626121934474344_3145732971",
      "created": "2018-10-30T14:58:40.000+0000",
      "text": "Hallo meine Lieben,\n ich weiß ich kann in letzter Zeit nichts posten, weil mir einfach die Zeit dazu fehlt. Im Neujahr habe ich tolle Neuigkeiten für euch ich freue mich und kann es kaum erwarten euch diese mitzuteilen. LG eure Meryem. \n#gesichtsbehandlung #outfits #outfitinspiration #swisscolor #permanentmakeup #like #follow #härchenzeichnung",
      "link": "https://www.instagram.com/p/Bpj7uH1ggxo/",
      "hashtags": [
        "gesichtsbehandlung",
        "outfits",
        "outfitinspiration",
        "swisscolor",
        "permanentmakeup",
        "like",
        "follow",
        "härchenzeichnung"
      ],
      "stat": {
        "likes": 512,
        "comments": 17
      }
    },
    {
      "user_id": "3145732971",
      "username": "amara__beauty",
      "user_picture": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/34731854_182359409273358_6339304529837686784_n.jpg",
      "user_url": "https://www.instagram.com/amara__beauty",
      "type": "photo",
      "post_id": "1816561777217882301_3145732971",
      "created": "2018-07-05T06:11:00.000+0000",
      "text": "Vorher Fremdarbeit ❗️😀 Vorher-Nachher ❤❤ Für Termine über DM oder 021431228730❤\n\n#kalicimakyaj #permanentmakeup #härchenzeichnung #härchentechnik #microblading #nanotechnik #swisscolor #pmu #eyebrows #augenbrauen #kilteknigikaş #beauty #beautyblogger #lifestyle #follow #like #takip #begen #meinearbeit #folgen #köln #düsseldorf #instagood #vorhernachher #instadaily #hudabeauty #beautytips #sale #amarabeauty #leverkusen #swisscolor @swisscolor",
      "link": "https://www.instagram.com/p/Bk1uU_Tn8i9/",
      "mentions": [
        "swisscolor"
      ],
      "hashtags": [
        "kalicimakyaj",
        "permanentmakeup",
        "härchenzeichnung",
        "härchentechnik",
        "microblading",
        "nanotechnik",
        "swisscolor",
        "pmu",
        "eyebrows",
        "augenbrauen",
        "kilteknigikaş",
        "beauty",
        "beautyblogger",
        "lifestyle",
        "follow",
        "like",
        "takip",
        "begen",
        "meinearbeit",
        "folgen",
        "köln",
        "düsseldorf",
        "instagood",
        "vorhernachher",
        "instadaily",
        "hudabeauty",
        "beautytips",
        "sale",
        "amarabeauty",
        "leverkusen"
      ],
      "stat": {
        "likes": 225,
        "comments": 12
      }
    },
    {
      "user_id": "3145732971",
      "username": "amara__beauty",
      "user_picture": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/34731854_182359409273358_6339304529837686784_n.jpg",
      "user_url": "https://www.instagram.com/amara__beauty",
      "type": "photo",
      "post_id": "1816098328444596095_3145732971",
      "created": "2018-07-04T14:50:13.000+0000",
      "text": "Vorher-Nachher ❤❤ Für Termine über DM oder 021431228730❤\n\n#kalicimakyaj #permanentmakeup #härchenzeichnung #härchentechnik #microblading #nanotechnik #swisscolor #pmu #eyebrows #augenbrauen #kilteknigikaş #beauty #beautyblogger #lifestyle #follow #like #takip #begen #meinearbeit #folgen #köln #düsseldorf #instagood #vorhernachher #instadaily #hudabeauty #beautytips #sale #amarabeauty #leverkusen #swisscolor @swisscolor",
      "link": "https://www.instagram.com/p/Bk0E87AHu9_/",
      "mentions": [
        "swisscolor"
      ],
      "hashtags": [
        "kalicimakyaj",
        "permanentmakeup",
        "härchenzeichnung",
        "härchentechnik",
        "microblading",
        "nanotechnik",
        "swisscolor",
        "pmu",
        "eyebrows",
        "augenbrauen",
        "kilteknigikaş",
        "beauty",
        "beautyblogger",
        "lifestyle",
        "follow",
        "like",
        "takip",
        "begen",
        "meinearbeit",
        "folgen",
        "köln",
        "düsseldorf",
        "instagood",
        "vorhernachher",
        "instadaily",
        "hudabeauty",
        "beautytips",
        "sale",
        "amarabeauty",
        "leverkusen"
      ],
      "stat": {
        "likes": 174,
        "comments": 6
      }
    },
    {
      "user_id": "3145732971",
      "username": "amara__beauty",
      "user_picture": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/34731854_182359409273358_6339304529837686784_n.jpg",
      "user_url": "https://www.instagram.com/amara__beauty",
      "type": "photo",
      "post_id": "1816097957240122753_3145732971",
      "created": "2018-07-04T14:49:28.000+0000",
      "text": "Mit meiner Prinzessin jede Sekunde genießen 😊 ❤❤ Für Termine über DM oder 021431228730❤\n\n#kalicimakyaj #permanentmakeup #härchenzeichnung #härchentechnik #microblading #nanotechnik #swisscolor #pmu #eyebrows #augenbrauen #kilteknigikaş #beauty #beautyblogger #lifestyle #follow #like #takip #begen #meinearbeit #folgen #köln #düsseldorf #instagood #vorhernachher #instadaily #hudabeauty #beautytips #sale #amarabeauty #leverkusen #swisscolor @swisscolor",
      "link": "https://www.instagram.com/p/Bk0E3hSnC2B/",
      "mentions": [
        "swisscolor"
      ],
      "hashtags": [
        "kalicimakyaj",
        "permanentmakeup",
        "härchenzeichnung",
        "härchentechnik",
        "microblading",
        "nanotechnik",
        "swisscolor",
        "pmu",
        "eyebrows",
        "augenbrauen",
        "kilteknigikaş",
        "beauty",
        "beautyblogger",
        "lifestyle",
        "follow",
        "like",
        "takip",
        "begen",
        "meinearbeit",
        "folgen",
        "köln",
        "düsseldorf",
        "instagood",
        "vorhernachher",
        "instadaily",
        "hudabeauty",
        "beautytips",
        "sale",
        "amarabeauty",
        "leverkusen"
      ],
      "stat": {
        "likes": 200,
        "comments": 6
      }
    },
    {
      "user_id": "3145732971",
      "username": "amara__beauty",
      "user_picture": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/34731854_182359409273358_6339304529837686784_n.jpg",
      "user_url": "https://www.instagram.com/amara__beauty",
      "type": "photo",
      "post_id": "1816097473209093640_3145732971",
      "created": "2018-07-04T14:48:31.000+0000",
      "text": "Vorher-Nachher ❤❤ Für Termine über DM oder 021431228730❤\n\n#kalicimakyaj #permanentmakeup #härchenzeichnung #härchentechnik #microblading #nanotechnik #swisscolor #pmu #eyebrows #augenbrauen #kilteknigikaş #beauty #beautyblogger #lifestyle #follow #like #takip #begen #meinearbeit #folgen #köln #düsseldorf #instagood #vorhernachher #instadaily #hudabeauty #beautytips #sale #amarabeauty #leverkusen #swisscolor @swisscolor",
      "link": "https://www.instagram.com/p/Bk0EwegHM4I/",
      "mentions": [
        "swisscolor"
      ],
      "hashtags": [
        "kalicimakyaj",
        "permanentmakeup",
        "härchenzeichnung",
        "härchentechnik",
        "microblading",
        "nanotechnik",
        "swisscolor",
        "pmu",
        "eyebrows",
        "augenbrauen",
        "kilteknigikaş",
        "beauty",
        "beautyblogger",
        "lifestyle",
        "follow",
        "like",
        "takip",
        "begen",
        "meinearbeit",
        "folgen",
        "köln",
        "düsseldorf",
        "instagood",
        "vorhernachher",
        "instadaily",
        "hudabeauty",
        "beautytips",
        "sale",
        "amarabeauty",
        "leverkusen"
      ],
      "stat": {
        "likes": 138,
        "comments": 3
      }
    },
    {
      "user_id": "3145732971",
      "username": "amara__beauty",
      "user_picture": "https://images.erseco-grupa.com/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/34731854_182359409273358_6339304529837686784_n.jpg",
      "user_url": "https://www.instagram.com/amara__beauty",
      "type": "photo",
      "post_id": "1800089884101094228_3145732971",
      "created": "2018-06-12T12:44:17.000+0000",
      "text": "#zahnbleaching 89,00€ hellt die Zähne auf und zaubert ein schönes Lächeln ❤️ #beauty #beautyköln #beautytips #beautytipsandtricks #beautycounter #beautydüsseldorf #beautysalon #haarentfernung #shr #zahnbleaching #wimpernverlängerung #wimpernextensions #gesichtsreinigung #wimpernlifting #comment #markierejemanden",
      "link": "https://www.instagram.com/p/Bj7NDZZnqtU/",
      "hashtags": [
        "zahnbleaching",
        "beauty",
        "beautyköln",
        "beautytips",
        "beautytipsandtricks",
        "beautycounter",
        "beautydüsseldorf",
        "beautysalon",
        "haarentfernung",
        "shr",
        "wimpernverlängerung",
        "wimpernextensions",
        "gesichtsreinigung",
        "wimpernlifting",
        "comment",
        "markierejemanden"
      ],
      "stat": {
        "likes": 130,
        "comments": 1
      }
    }
  ]
}

Shows subscription history

Shows subscription history for the user
GET/advertiser/influencer/subscriptions

This function will return the subscription history for an advertiser.

Example URI

GET /advertiser/influencer/subscriptions
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
[
  {
    "id": 1,
    "valid_from": 1580070788,
    "valid_until": 1585340405,
    "profile_requests": 10,
    "invoice": "https://api.yimify.local/files/invoice1.pdf",
    "period": "26.01 - 27.03.20",
    "is_current": true
  },
  {
    "id": 2,
    "valid_from": 1585340405,
    "valid_until": 1685337311,
    "profile_requests": 10,
    "invoice": "",
    "period": "27.03 - 29.05.23",
    "is_current": false
  }
]

Shows history for big setcard views

Shows history for big setcard views
GET/advertiser/influencer/bigsetcardhistory/{id}

This function will return the big setcard history for an advertiser.

Example URI

GET /advertiser/influencer/bigsetcardhistory/id
URI Parameters
HideShow
id
int (required) 

Subscription ID as int.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "1149011": {
    "user": "Test user (test@user.de)",
    "date": 1579108728,
    "social_id": "1149011",
    "setcard": {
      "influencerId": null,
      "socialId": 1149011,
      "profile_picture": "https://images.erseco-grupa.com/user/social/1149011.jpg",
      "profile_name": "jimrosem",
      "full_name": "Jim Rosemberg",
      "channels": [
        "instagram"
      ],
      "followers": 12229,
      "engagements": 876,
      "engagementrate": 7.1633003,
      "audience": {
        "male": 0.5742717046437843,
        "female": 0.42572829535621576
      },
      "location_by_country": [
        {
          "US": 0.18732212160413972,
          "FR": 0.16403622250970246,
          "GB": 0.06882276843467011
        }
      ],
      "age_split": {
        "13-17": 0.08580161411008068,
        "18-24": 0.3316647488282952,
        "25-34": 0.38609798363227515,
        "35-44": 0.12841865272017208,
        "45-64": 0.06463033909596551,
        "65+": 0.003386661613211399
      },
      "interests": [
        "Photography",
        "Fashion",
        "Travel"
      ],
      "popular_posts": [
        {
          "user_id": "1515950299",
          "username": "montanablack",
          "user_picture": "http://imgp.socapi.icu/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/39325451_1769573119757740_9097781287539703808_n.jpg",
          "user_url": "https://www.instagram.com/montanablack",
          "type": "photo",
          "post_id": "1974128482175098542_1515950299",
          "created": "2019-02-07T15:47:55.000+0000",
          "text": "Finanzamt ruft an",
          "image": "http://imgp.socapi.icu/?https://scontent-arn2-1.cdninstagram.com/t51.2885-15/sh0.08/e35/s750x750/49858129_144750189865157_93266341607501769_n.jpg",
          "thumbnail": "http://imgp.socapi.icu/?https://scontent-arn2-1.cdninstagram.com/t51.2885-15/e35/s240x240/49858129_144750189865157_93266341607501769_n.jpg",
          "link": "https://www.instagram.com/p/Btlg2UpBx6u/",
          "stat": {
            "likes": 319603,
            "comments": 6122
          }
        },
        {
          "user_id": "1515950299",
          "username": "montanablack",
          "user_picture": "http://imgp.socapi.icu/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/39325451_1769573119757740_9097781287539703808_n.jpg",
          "user_url": "https://www.instagram.com/montanablack",
          "type": "photo",
          "post_id": "2000224178380222951_1515950299",
          "created": "2019-03-15T15:55:24.000+0000",
          "text": "Werbung \"WIR“ - Der neue Film von Jordan Peele (GetOut) ist ab 21. März in den Kinos! #wersindwir #wirsindunsergrössterfeind",
          "image": "http://imgp.socapi.icu/?https://scontent-lga3-1.cdninstagram.com/t51.2885-15/e35/53123425_336668633861243_5519879360721318252_n.jpg",
          "thumbnail": "http://imgp.socapi.icu/?https://scontent-lga3-1.cdninstagram.com/t51.2885-15/e35/s240x240/53123425_336668633861243_5519879360721318252_n.jpg",
          "link": "https://www.instagram.com/p/BvCOUrngDHn/",
          "hashtags": [
            "wersindwir",
            "wirsindunsergrössterfeind"
          ],
          "stat": {
            "likes": 282578,
            "comments": 2698
          },
          "sponsor": {
            "user_id": "10808157051",
            "usename": "wir.film"
          }
        },
        {
          "user_id": "1515950299",
          "username": "montanablack",
          "user_picture": "http://imgp.socapi.icu/?https://scontent-frt3-2.cdninstagram.com/t51.2885-19/s320x320/39325451_1769573119757740_9097781287539703808_n.jpg",
          "user_url": "https://www.instagram.com/montanablack",
          "type": "photo",
          "post_id": "1862526024957471965_1515950299",
          "created": "2018-09-06T16:13:45.000+0000",
          "image": "http://imgp.socapi.icu/?https://scontent-lga3-1.cdninstagram.com/t51.2885-15/e35/40041733_446767609062918_3957602939912631851_n.jpg",
          "thumbnail": "http://imgp.socapi.icu/?https://scontent-lga3-1.cdninstagram.com/t51.2885-15/e35/s240x240/40041733_446767609062918_3957602939912631851_n.jpg",
          "link": "https://www.instagram.com/p/BnZBY02gqzd/",
          "stat": {
            "likes": 269564,
            "comments": 13639
          }
        }
      ]
    }
  }
}

Payment

Show payment.

Authorize payment

Authorize payment
POST/advertiser/payment/authorize

This function will get the values for the payment which should be authorized

Example URI

POST /advertiser/payment/authorize
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
  "type": "campaign",
  "id": 1
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true,
  "name": "HOLGA 120N Instant Camera",
  "amount": 120,
  "client_secret": "pi_fda45jkt4935u9ejidf"
}

Outstanding Payment

Outstanding payment
GET/advertiser/payment/outstanding

This function will show all outstanding payments

Example URI

GET /advertiser/payment/outstanding
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
     "id": 9,
        "status": 50,
        "name": "HOLGA 120N Instant Camera",
        "label": {
          "type": "Produkt für Post",
          "payment": "Fix",
          "channel": "Instagram",
          "status": "Abgeschlossen"
        },
        "influencers": [
          {
            "influencer_user_id": 1,
            "amount_net": "200.00",
            "amount_fee": "24.00",
            "vat": "19.00",
            "amount_vat": "42.56",
            "amount_gross": "266.56",
            "invoice": null,
            "paid": null,
            "name": "User One ()"
          },
        ]
}

Completed Payment

Completed payment
GET/advertiser/payment/completed

This function will show all completed payments

Example URI

GET /advertiser/payment/completed
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
     "id": 10,
        "status": 50,
        "name": "HOLGA 120N Instant Camera",
        "label": {
          "type": "Produkt für Post",
          "payment": "Fix",
          "channel": "Instagram",
          "status": "Abgeschlossen"
        },
        "influencers": [
          {
            "influencer_user_id": 1,
            "amount_net": "200.00",
            "amount_fee": "24.00",
            "vat": "19.00",
            "amount_vat": "42.56",
            "amount_gross": "266.56",
            "invoice": null,
            "paid": null,
            "name": "User One ()"
          },
        ]
}

Pay Payment

Pay payment
POST/advertiser/payment/pay

This function will pay a payment

Example URI

POST /advertiser/payment/pay
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Body
{
     "campaign_id": 1,
     "influencer_user_id": 1,
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true
}

Download all invoices

Download all invoices
GET/advertiser/payment/downloadallinvoices/{id}

This function will download all invoices for a campaign as base64 coded zip file

Example URI

GET /advertiser/payment/downloadallinvoices/id
URI Parameters
HideShow
id
number (required) 

Campaign ID.

Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "status": true,
  "filename": "InvoicesCampaign10.zip",
  "file": "UEsDBBQAAAAAAIKo3U4AAAAAAAAAAAAAAAATAAAASW52b2ljZXNDYW1wYWlnbjEwL1BLAwQUAAIACACCqN1OwTnTpXoIAADYGAAAHAAAAEludm9pY2VzQ2FtcGFpZ24xMC9kZW1vMS5wZGbdWG9sHEcVP6kIqScQFIkWJCRGl0bY0Lv9c7f3Z7nbyL6Lk0t8zmE7"
}

Download all invoices direct

Download all invoices direct
GET/advertiser/payment/downloadallinvoicesdirect/{id}

This function will download all invoices for a campaign as direct download

Example URI

GET /advertiser/payment/downloadallinvoicesdirect/id
URI Parameters
HideShow
id
number (required) 

Campaign ID.

Request
HideShow
Headers
Content-Type: application/zip
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/zip
Content-Disposition: attachment; filename="InvoicesCampaign10.zip"
Body
{
     Content of ZIP
}

Tooltip

Show tooltip.

Get tooltips

Get tooltips
GET/advertiser/tooltip/show

This function will show the tooltips.

Example URI

GET /advertiser/tooltip/show
Request
HideShow
Headers
Content-Type: application/json
Authorization: Bearer _wAEdVfIX9GcEa2WoHQHFPq1NzBY2TIT_1525969948
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
    "dashboard_status": "In dieser Übersicht können alle Kampagnen nach ihrem jeweiligen Status sortiert werden.\r\n",
    "campaign_create": "Das Akzeptieren der Abbuchung von € 80,- (nicht zusätzlich - wird verrechnet) ermöglicht die Suche in unserer Influencer-Datenbank. \r\n",
    "campaign_name": "Hier bitte den Titel der Kampagne festlegen.\r\n",
}

Generated by aglio on 24 Oct 2020