2017 © Pedro Peláez
 

library stackadapt-api

image

colling-media/stackadapt-api

  • Wednesday, October 19, 2016
  • by darkgoldblade01
  • Repository
  • 2 Watchers
  • 0 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 11 % Grown

The README.md

SwaggerClient-php

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, (*1)

This PHP package is automatically generated by the Swagger Codegen project:, (*2)

  • 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, (*3)

Installation & Usage

Composer

    composer require colling-media/stackadapt-api
````

### Manual Installation

Download the files and include `autoload.php`:

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

Tests

To run the unit tests:, (*4)

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

Getting Started

Please follow the installation procedure and then run the following:, (*5)

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, (*6)

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

The Versions

19/10 2016

dev-master

9999999-dev http://swagger.io

  Sources   Download

Apache V2

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk

19/10 2016

v1.0.4

1.0.4.0 http://swagger.io

  Sources   Download

Apache V2

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk

19/10 2016

v1.0.3

1.0.3.0 http://swagger.io

  Sources   Download

Apache V2

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk

19/10 2016

v1.0.2

1.0.2.0 http://swagger.io

  Sources   Download

Apache V2

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk

19/10 2016

v1.0.1

1.0.1.0 http://swagger.io

  Sources   Download

Apache V2

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk

19/10 2016

v1.0.0

1.0.0.0 http://swagger.io

  Sources   Download

Apache V2

The Requires

  • php >=5.4
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk