Get Promo Material

Example Request

<?php
//Set up API path and method
$base_url = "https://dev.paykickstart.com/api/";
$route = "promo-material";
$url = $base_url . $route;
$post = false;

//Create request data string
$data = http_build_query([
    "auth_token" => "DLFJKGHW9834",
    "campaign_id" => 123,
]);

//Execute cURL request
$ch = curl_init();
if ($post) {
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
} else {
    $url = $url . "?" . $data;
}
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
$output = curl_exec($ch);
curl_close($ch);

//Output Response
echo json_decode($output);

Example Response

{
  "banner": [
    {
      "id": 95,
      "product_id": 246,
      "campaign_title": "Banner #1 - 300x250",
      "notes": "Launch Banner",
      "material_type": "banner",
      "banner_url": "https://s3.amazonaws.com/docs.paykickstart.com/banner-images/1473449008_banner-300x250-a.jpg",
      "banner_size": "",
      "email_text": "",
      "created_at": "-0001-11-30 00:00:00",
      "updated_at": "2016-09-21 22:42:58"
    },
    {
      "id": 102,
      "product_id": 246,
      "campaign_title": "Banner #2 - 300x250",
      "notes": "Launch Banner",
      "material_type": "banner",
      "banner_url": "https://s3.amazonaws.com/docs.paykickstart.com/banner-images/1474487017_banner-300x250-b.jpg",
      "banner_size": "",
      "email_text": "",
      "created_at": "-0001-11-30 00:00:00",
      "updated_at": "-0001-11-30 00:00:00"
    },
    {
      "id": 103,
      "product_id": 246,
      "campaign_title": "Banner #3 - 100x72",
      "notes": "Launch Banner",
      "material_type": "banner",
      "banner_url": "https://s3.amazonaws.com/docs.paykickstart.com/banner-images/1474487045_banner-100x72-a.jpg",
      "banner_size": "",
      "email_text": "",
      "created_at": "-0001-11-30 00:00:00",
      "updated_at": "-0001-11-30 00:00:00"
    }
  ],
  "email": [
    {
      "id": 115,
      "product_id": 246,
      "campaign_title": "Pre-Launch Webinar",
      "notes": "Send Jan 11th-12th",
      "material_type": "email",
      "banner_url": "",
      "banner_size": "",
      "email_text": "{\"subject\":\"[Register] 92% of top Clickbank products use this... (trick EXPOSED)\n[Live Event] Simple \"trick\" EXPOSED...3-5x sales page booster!\n[1/13] Top-Selling product FORMULA exposed! (register now)\",\"body\":\"<p>This Tuesday, the 13th at 11:00AM EST there is<br />\na can&#39;t miss, one-time event that is being held by<br />\ntwo marketers who both run 8-figure publishing<br />\ncompanies.</p>\n\n<p>Register for the live event:<br />\n{{$tracking_link}}</p>\n\n<p>During this live training, they are going to be<br />\nrevealing:</p>\n\n<p>- the 1 &quot;trick&quot; that top-selling products on<br />\nClickbank, JV Zoo, and WarriorPlus are using<br />\nto generate thousands of buyers and 6-7 figure<br />\npaydays.</p>\n\n<p>- how to increase sales page conversion rates<br />\nby 3-5x in ONE DAY.</p>\n\n<p>- how to replicate the same type of videos that<br />\nare used by 95% of the top selling vendors on<br />\nClickbank - each that generate thousands per day<br />\nin revenue.</p>\n\n<p>- a live demo at the new EasyVSL software that<br />\nmakes creating high-converting video sales letters<br />\npoint-and-click easy WITHOUT having to hire or pay<br />\nfor professionals.</p>\n\n<p>This will be a one-time only event.</p>\n\n<p>Click here to reserve your FREE spot.<br />\n{{$tracking_link}}</p>\n\n<p>Looking forward to the training event!</p>\n\n<p>To your success,<br />\nNAME</p>\n\"}",
      "created_at": "-0001-11-30 00:00:00",
      "updated_at": "-0001-11-30 00:00:00"
    },
    {
      "id": 117,
      "product_id": 246,
      "campaign_title": "Launch Swipe #2",
      "notes": "Send Jan 13th",
      "material_type": "email",
      "banner_url": "",
      "banner_size": "",
      "email_text": "{\"subject\":\"[NEW] Create better, faster, easier, & automated videos\nEasy video creation...unlike anything you've seen!\nAre your sales videos TANKING...? (here is why)\nWant better results from your sales videos? (then watch this)\",\"body\":\"<p>If you are a lot like me...</p>\n\n<p>...you don&#39;t want to have to pay hundreds or thousands<br />\non a professional to create high-converting videos.</p>\n\n<p>...you don&#39;t want to spend all day messing around with<br />\ncomplicated software.</p>\n\n<p>...you don&#39;t want to waste time and energy creating<br />\nvideos that don&#39;t generate leads and sales.</p>\n\n<p>Well - good news (click here)!</p>\n\n<p>{{$tracking_link}}</p>\n\n<p>Mark Thompson and Matt Callen - two of the best in the<br />\nbiz for creating amazing software for marketers (you will<br />\nactually use) - have created a SIMPLE, yet effective<br />\nsoftware for creating sales videos fast &amp; easy.</p>\n\n<p>...oh yeah - and most importantly, actually CONVERT!</p>\n\n<p>Its called EasyVSL and it JUST went live!<br />\nHere is what EasyVSL can do...</p>\n\n<p>- Creates Easy and Powerful Sales Videos<br />\n- Easy presentation style videos, faster then using<br />\nPowerpoint and way better quality!<br />\n- Point &amp; Click Easy - Learning Curve is in Minutes<br />\n- Over 25+ Professional Slide Themes/Backgrounds<br />\n- Powerpoint-Easy Text &amp; Graphics Editing<br />\n- Over 30+ Fonts<br />\n- Eye-Popping Slide Animation Options<br />\n- Easy 1-Click Audio/Slide Sync<br />\n- Upload-Ready, HD Quality Export in MP4 Format<br />\n- Direct Upload to YouTube Account<br />\n- Manage all VSLs in one Interface<br />\n- Save Hours, Even Days Creating High-Converting VSLs!</p>\n\n<p>The best part is EasyVSL is Adobe Air based, which<br />\nmeans is runs smoothly on both Mac and PC.</p>\n\n<p>Watch a live demo of EasyVSL, plus see all of the features<br />\nabove in action.</p>\n\n<p>{{$tracking_link}}</p>\n\n<p>This is currently available at an extremely low price.<br />\nHowever this price will not be available for long.</p>\n\n<p>For a short time you can get a LIFETIME copy of<br />\nEasyVSL, creating an unlimited number of videos<br />\nat a ONE-TIME investment.</p>\n\n<p>NOW is the time to grab your copy - before the price<br />\nsky-rockets!</p>\n\n<p>{{$tracking_link}}</p>\n\n<p>To your success,<br />\nNAME</p>\n\"}",
      "created_at": "-0001-11-30 00:00:00",
      "updated_at": "-0001-11-30 00:00:00"
    }
  ],
  "contests": [
    {
      "id": 32,
      "product_id": 246,
      "user_id": 137,
      "type": 0,
      "name": "Main Launch Contest (Jan 13-20th)",
      "affiliates_count": 20,
      "show_affiliates_count": 1,
      "start_date": "2016-01-13 08:00:00",
      "end_date": "2016-01-20 08:00:00",
      "notes": "$50,000 Prize Contest",
      "created_at": "2016-09-21 22:54:21",
      "updated_at": "2016-09-21 22:54:21"
    },
    {
      "id": 33,
      "product_id": 246,
      "user_id": 137,
      "type": 0,
      "name": "Weekend Contest (Jan 16-17th)",
      "affiliates_count": 20,
      "show_affiliates_count": 1,
      "start_date": "2016-01-16 08:00:00",
      "end_date": "2016-01-17 08:00:00",
      "notes": "$5,000 Weekend Contest",
      "created_at": "2016-09-21 22:55:30",
      "updated_at": "2016-09-21 22:55:30"
    }
  ]
}

Returns all the marketing material for a specified campaign.

ARGUMENTS

auth_token

The Paykickstart vendor’s API Key. This field is required.


campaign_id

The affiliate’s campaign’s id. This field is required.