colling-media/stackadapt-api

This package is abandoned and no longer maintained. No replacement package was suggested.

v1.0.4 2016-10-18 22:57 UTC

This package is auto-updated.

Last update: 2020-01-22 21:45:00 UTC


README

Use this API to create Native Ads and Campaigns on the StackAdapt Platform Use this API to create Native Ads and Campaigns on the StackAdapt Platform

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 2.0.0
  • Build date: 2016-10-18T22:29:35.986Z
  • Build package: class io.swagger.codegen.languages.PhpClientCodegen

Requirements

PHP 5.4.0 and later

Installation & Usage

Composer

    composer require colling-media/stackadapt-api

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit lib/Tests

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
CollingMedia\StackAdapt\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// CollingMedia\StackAdapt\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');

$api_instance = new CollingMedia\StackAdapt\Api\CampaignApi();
$body = new \CollingMedia\StackAdapt\Model\CampaignRequest(); // \CollingMedia\StackAdapt\Model\CampaignRequest | 

try {
    $result = $api_instance->createCampaign($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CampaignApi->createCampaign: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to http://api.stackadapt.com/service/v2

Class Method HTTP request Description
CampaignApi createCampaign POST /campaign Create new campaign
CampaignApi deleteCampaign DELETE /campaign/{id} Delete a campaign
CampaignApi findCampaign GET /campaign/{id} Find campaign by id
CampaignApi findCampaigns GET /campaigns Return all campaigns
CampaignApi updateCampaign PUT /campaign/{id} Update existing campaign
CampaignsApi findCampaigns GET /campaigns Return all campaigns
ConversionTrackersApi createConversionTracker POST /conversion_tracker Create new conversion tracker
ConversionTrackersApi deleteConversionTrackers DELETE /conversion_tracker/{id} Delete a conversion tracker
ConversionTrackersApi findConversionTracker GET /conversion_tracker/{id} Find conversion tracker by id
ConversionTrackersApi findConversionTrackers GET /conversion_trackers Returns all conversion trackers
ConversionTrackersApi updateConversionTracker PUT /conversion_tracker/{id} Update exisiting conversion tracker
ConversiontrackerApi createConversionTracker POST /conversion_tracker Create new conversion tracker
ConversiontrackerApi deleteConversionTrackers DELETE /conversion_tracker/{id} Delete a conversion tracker
ConversiontrackerApi findConversionTracker GET /conversion_tracker/{id} Find conversion tracker by id
ConversiontrackerApi updateConversionTracker PUT /conversion_tracker/{id} Update exisiting conversion tracker
ConversiontrackersApi findConversionTrackers GET /conversion_trackers Returns all conversion trackers
NativeAdApi addNativeAd POST /native_ad Create new native ad
NativeAdApi deleteNativeAd DELETE /native_ad/{id} Delete a native ad
NativeAdApi findNativeAd GET /native_ad/{id} Find native ad by id
NativeAdApi findNativeAds GET /native_ads Returns all native ads
NativeAdApi updateNativeAd PUT /native_ad/{id} Update existing native ad
NativeadApi addNativeAd POST /native_ad Create new native ad
NativeadApi deleteNativeAd DELETE /native_ad/{id} Delete a native ad
NativeadApi findNativeAd GET /native_ad/{id} Find native ad by id
NativeadApi updateNativeAd PUT /native_ad/{id} Update existing native ad
NativeadsApi findNativeAds GET /native_ads Returns all native ads
StatsApi getStats GET /stats Get stats

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key
  • API key parameter name: api_key
  • Location: URL query string

Author