<?php 


// Generated by curl-to-PHP: http://incarnate.github.io/curl-to-php/
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "https://nl.pinterest.com/resource/BoardsResource/get/?source_url=%2Fmainecoonnl%2F&data=%7B%22options%22%3A%7B%22filter%22%3A%22public%22%2C%22sort%22%3A%22profile%22%2C%22field_set_key%22%3A%22grid_item%22%2C%22skip_board_create_rep%22%3Atrue%2C%22username%22%3A%22mainecoonnl%22%7D%2C%22context%22%3A%7B%22advertiser%22%3Anull%7D%7D&_=1477825134163");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");


$headers = array();
//$headers[] = "Cookie: _pinterest_referrer=\"http://deandev.com/support?ticket=3433\"; lastUnauthProfileId=366762100812447661; sessionFunnelEventLogged=1; _b=\"ASFMcD7jmGtHGJAdwecyaj1uv6I0Mqi/yM+wb0gkWXrn6LYMfAe5NtdzpBdIeFty2k4=\"; csrftoken=2L5i9F8pri18j4wjN1Alod2zOvQ6YBAl; _pinterest_pfob=disabled; _auth=1; _pinterest_sess=TWc9PSZDclAvZ1hJS1ZWM2RPdDZsaFFtK2RDV2VzMlRpZ0NuaUlVNWNlN3RqaVM0NWl0dU5OZzIvUzl3OFgrcE4yTTdmVjhkeitiSUV6TjBPUVRwTC9jYldsY0hLRzVnVTRXUksxUVNOSFd1a2szdG16Q2l3Q3pFUUNlajJkYTlkOW1MVkQrQ3lGWjlJRjRoSnZCT0lsZWJxTEV3SDB2dUNFd09rREFUbWJscEs5SDlBVVBiU29KU0lRdHl6Vkk4M0c4V0lMYklmVnpRaGZha21KOGh5ZlJPbmxhNG1tOHF6Nk8yL1pQcjZ5Z0pBeTA4U1J5S0piemhHeTgvSE02T292anFCK01PNjNDV3ZrRXFQdHpYMWN3NFl3eFhDU1VRc3J4RER0TUdDeDJMYXpoTktCRHVIVjN6YVd6TnlTZ1hueGNjSXcwNnBzKzRGSDVwb25uSUh3eGZ0TlI3dTB2Z3VZU3dPa0hxZjNlMlN0cVE4dlNWTFd5Sm96TnFYODQzSHhrcUpUZ21VOThSNVhPNG1XVVNCUU9ZMHQ1WFh4T1dEMkpqZ2JhbjVvOHYvVE4rV2Z3SC9UM3pLcjNjK20rOWxBcTB3NERlRFhsMkRjVmpzSWJZTmRJWjZJaVRwaWZTaUsxQnovOUlUS1h2YjVxdVVvaFZFUi9jeC8yQ082Tnh2cGF4R1NWaXhGd0hmZ3IzVWZBOHRPZzhGcHIreklUNE1DbG1mNklCQW9LL1BhNllWSGp3Wm94b2hZem16WURiRG5tMEtGdUdWZ1NUc3FVeFk4c3gzR3BaeHFIL1g3SVBqV3h5Ums4VFRTdnNhMExLaml4aC81RUV6eVI0Y3FKd2wxa2YzdXZlekFVU1g3eStaQ1luaXQ2VjRWSFp1K2pMUk5kc1JOT29KRVd5bmpBN1YrTDNidnRORVpnalBwQ1Axbm12KzkyTDhDei80cmlLdXcrVVNoOEdJekw5RUIvdDNiOGdpWFQ1SlE3M1A3Y1U1aS9kYlJRbkJUcDRqMGNWOEVSME4yMklQWGZFWnc3eVhYK2ZIVS83Sjk4cXkxVDdQbGh2NnJQUzBIbVNNRE5RPSZwUTNYZ0ZXdWR6QVBuNzN3Z3N0RjJ2NlExY0k9; c_dpr=1; bei=false";
$headers[] = "X-Pinterest-Appstate: active";
$headers[] = "X-App-Version: a3b839f";
//$headers[] = "Accept-Encoding: gzip, deflate, sdch, br";
$headers[] = "Accept-Language: en-US,en;q=0.8,ar;q=0.6";
$headers[] = "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36";
$headers[] = "X-New-App: 1";
$headers[] = "Accept: application/json, text/javascript, */*; q=0.01";
$headers[] = "Referer: https://nl.pinterest.com/";
$headers[] = "X-Requested-With: XMLHttpRequest";
$headers[] = "Connection: keep-alive";

curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);

$x=curl_error($ch);

 echo $x;
 echo ' --res ---- ';
print_r( json_decode($result) ) ;

 

?>