i have two scripts through which i am trying to fetch class schedule from mindbody api. For this i am refereing the documents from github devincrossman mindbody api
Code on first page index.php starts from the following code
require 'MB_API.php';
$mb = new \DevinCrossman\Mindbody\MB_API(array(
"SourceName"=>'ABC',
"Password"=>'ABC',
"SiteIDs"=>array('123')
));
and code on second page MB_API.php starts from
namespace DevinCrossman\Mindbody;
class MB_API {
protected $client;
protected $sourceCredentials = array(
"SourceName"=>'ABC',
"Password"=>'ABC',
"SiteIDs"=>array('123')
);
It was working fine, but recently i switched my server and now it is not working, it is supposed to show the schedule of all classes.
now i am getting error
Unexpected character in input: '\' (ASCII=92) state=1 on line 3
syntax error, unexpected T_STRING on line 3 in index.php (i.e $mb = new \DevinCrossman\Mindbody\MB_API(array()
syntax error, unexpected T_STRING on line 2 in MB_API.php (i.e namespace DevinCrossman\Mindbody;)
Can anyone please tell why this error is present although it used to work fine earlier