$request = new HttpRequest();
$request->setUrl('http://oltest1.api.offerslook.com/v1/offers/54905');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders(array(
'postman-token' => '4eeb8570-f3a9-dde0-1c23-dc02e303e857',
'cache-control' => 'no-cache',
'authorization' => 'Basic b2x0ZXN0MTo1YzVjZTZiMTZiMGE0NDNkOTg0ZDYyMjZlOTZkZGMzOQ==',
'content-type' => 'application/json'
"description": "This is our company's website address: http://www.offerslook.com.Welcome to visit!",
"destination_url": "https://oltest1.offerstrack.net/pixelBack.php?offer_id=19943&adv_id=5556&amount=100" ,
"preview_url": "http://www.offerslook.com",
"revenue_type": "RPA+RPS",
"percent_revenue": "10.00",
"global_redirect_enabled": 0,
"conversion_protocol": "2",
"approve_conversions": "0"
"name": "Music and Audio,test,Sunday"
"cap_timezone": "Australia/Lord_Howe",
"adv_cap_conversion": 100,
"adv_cap_revenue": "500",
"aff_cap_conversion": 500,
"aff_cap_payout": "800.000"
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {