previewict / vonage-php-api

Vonage Business Cloud Phone System Integration API in PHP. Integrate vonage cloud phone system with your PHP application, More ROI, Smart CRM, Grow Sales.
MIT License
2 stars 1 forks source link

required files #1

Open juliemoffat opened 8 years ago

juliemoffat commented 8 years ago

Can you tell me what vendor/autoload.php should have in it?

My php version throws errors when trying to run index.php and include Vonage.php. Where does GuzzleHttp\Client come from? Where is it defined so that I may 'use' it. It also doesn't like some of this syntax is kosher with my version of PHP. What version is this compatible with? I get: Parse error: syntax error, unexpected '[' in /...]vonage-php-api-master/Vonage/Vonage.php on line 28

so that this line $response = $this->client->get($this->apiDomain.'/appserver/rest/user/null',
['cookies' => $this->cookie, 'query' => ['htmlLogin' => $username, 'htmlPassword' => $password]]); fails. (Along with the 'require autoload.php' that doesn't exist, etc) Can you provide any more description on how this could be used? I just want to make the same basic call log request it uses.

Thanks.

shahariaazam commented 8 years ago

Hello @juliemoffat, To install all the necessary dependency libraries like Guzzle and other, you have to run composer install. All the dependencies are coming via Composer. After when you will install dependencies via composer. Then in your application root, all dependencies will be saved on vendor directory with a PHP autoloader file that is called vendor/autoload.php.

You must have to install all the dependencies to run this library. Most of the answers you will get after that.

Thanks, Shaharia

juliemoffat commented 8 years ago

Thanks very much for your quick response. I have no idea what Composer is. Or which of your files I would use with it if I did.

I'm on a Mac, I use Dreamweaver to edit code by hand and ftp it to my server. I can ssh in to my grid server with the Terminal window if I need do something with unix.

I really like your code. Looks very clean. Exactly what I'm looking for.

On Feb 3, 2016, at 5:40 PM, Shaharia Azam notifications@github.com wrote:

Hello @juliemoffat, To install all the necessary dependency libraries like Guzzle and other, you have to run composer install. All the dependencies are coming via Composer. After when you will install dependencies via composer. Then in your application root, all dependencies will be saved on vendor directory with a PHP autoloader file that is called vendor/autoload.php.

You must have to install all the dependencies to run this library. Most of the answers you will get after that.

Thanks, Shaharia

— Reply to this email directly or view it on GitHub.