Problem Accessing Data via Bing Search API using php


  • Hello,

    I'm newbie in using Bing search API and I use script from here

    However, I always get the following error whenever I try to test the code.

    exception 'Exception' with message 'Bad Response:' in C:\xampp\htdocs\testing_bing_api\BingSearch.php:112 Stack trace: #0 C:\xampp\htdocs\testing_bing_api\BingSearch.php(88): BingSearch->getJSON('https://api.dat...', Array) #1 C:\xampp\htdocs\testing_bing_api\BingSearch.php(31): BingSearch->query('Image', 'xbox') #2 C:\xampp\htdocs\testing_bing_api\example.php(22): BingSearch->queryImage('xbox') #3 {main}

    Any solution to make this script working is greatly appreciated.

    Monday, September 16, 2013 3:46 AM