Ben Millett

Ben Millett

This does not affect the simple api stuff, right?

Ted Roden

Ted Roden Alum

Nope, this doesn't affect anything on the server side.

People complained about the requirements of the old php library, so I fixed that.

Dr. Woohoo!

Dr. Woohoo!

ted;
/ *
i added my api key & secret, uploaded the 2 php files to my server, inthemod.com/vimeo/example.php, and i'm getting the following error:

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/virtual/site142/fst/var/www/html/vimeo/phpVimeo.php on line 23

* /

woohoo!
drew

Adam Gell

Adam Gell

its not working at all for me, with PHP 5 and libcurl installed. I get to vimeo for auth, and it never bounces back to the site the kit is installed at.

Adam Gell

Adam Gell

Yea, i made it an absolute URI, and still nothing.

Pasquale D'Ambrosio

Pasquale D'Ambrosio

Hi everybody,
I'm very new to programming in php5 and with Vimeo APIs. Maybe will be very simple to find a solution to my problem :)
I followed the instructions:

- I uploaded the 2 files in my server
- inserted the key and the secret
- set the callback url to a page (test.php) placed in the same folder of example.php
- run example.php

....and everything work!!! :)

My appllication should allow users to upload videos on their vimeo account.
I need to call in "test.php" the method "upload($full_path_to_file)".
How can I refer in test.php to the same object of the class "phpVimeo.php" created in "example.php"?
Thanks a lot

Pasq

Pasquale D'Ambrosio

Pasquale D'Ambrosio

Hi everybody,

I put in "test.php" the following lines of code:

include_once("./phpVimeo.php");

$api_key = "MY_KEY";
$api_secret = "MY_SECRET";

$v = new phpVimeo($api_key, $api_secret);

$v->upload("FULL_PATH_ON_MY_SERVER");

I make the debug, and the script enter in tha following ELSE statement of the "upload()" method.

if($rsp->stat == 'ok') $ticket = $rsp->ticket->id;
else return false;

Infact, printing on screen the variable "$rsp->stat " the result is "FAIL".
Someone who knows where is my mistake?
Thanks a lot

Pasq

This conversation is missing your voice. Please join Vimeo or log in.