Instagram Panel API Help

  • Status Closed
  • Budget $10 - $30 USD
  • Total Bids 7

Project Description

We are making a form where the user enters the amount of likes they want to add to the photo and the link and then it adds the likes to the photo. We are doing this through someones API but we cant get it to work.

If you can make it work your hired:

<?php

class igers

{

public $api_url = '[url removed, login to view]'; // API URL

public $api_key = 'YOURKEY'; // Your API key

public function order($link, $type, $quantity)

{ // Add order

return json_decode($this->connect(array(

'key' => $this->api_key,

'action' => 'add',

'type' => $type,

'amount' => $quantity,

'link' => $link

)));

}

public function status($order_id)

{ // Get status

return json_decode($this->connect(array(

'key' => $this->api_key,

'action' => 'status',

'order' => $order_id

)));

}

private function connect($post)

{

$_post = Array();

if (is_array($post)) {

foreach ($post as $name => $value) {

$_post[] = $name.'='.$value;

}

}

if (is_array($post))

{

$url_complete = join('&', $_post);

}

$url = $this->api_url.$url_complete;

$ch = curl_init($url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_HEADER, 0);

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE [url removed, login to view]; Windows NT 5.0)');

$result = curl_exec($ch);

if (curl_errno($ch) != 0 && empty($result))

{

$result = false;

}

curl_close($ch);

return $result;

}

}

?>

Get free quotes for a project like this
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online