Welcome Guest, Not a member yet? Register   Sign In
Codeigniter-Foursquare Library
#1

[eluser]Unknown[/eluser]
For people who are interested in working with Foursquare and Codeigniter,
I have made a Github repo for that.

Please see https://github.com/shomnat/FoursquareCodeigniter

to get the library and see the readme.

The library is based on Jaisen Mathai's PHP library for Foursquare and uses the My_Input hack.
#2

[eluser]RJ[/eluser]
nice thanks!
#3

[eluser]Unknown[/eluser]
The above library is obsolete as Foursquare is deprecating their v1 API. Luckily, Mathai's foursquare-async library (also on github https://github.com/jmathai/foursquare-async) has been updated to API v2. My fork is here: https://github.com/dxia/FoursquareCodeigniter
#4

[eluser]Unknown[/eluser]
Hi
I’m having some troubles using your fork (https://github.com/dxia/FoursquareCodeigniter).

In particular, when foursquare.com asks me to allow my application, I click the green button and then it starts loading and doing nothing.
This is a call stack:


( ! ) Fatal error: Maximum execution time of 300 seconds exceeded in C:\xxxxx\application\libraries\Epifoursquare.php on line 331
Call Stack
# Time Memory Function Location
1 0.0006 701416 {main}( ) ..\index.php:0
2 0.0015 788640 require_once( 'C:\xxxxx\system\core\CodeIgniter.php' ) ..\index.php:201
3 0.0529 4261752 call_user_func_array ( )
..\CodeIgniter.php:339
4 0.0529 4261832 Fsauth->callback( ) ..\CodeIgniter.php:0
5 0.0558 4498640 Epifoursquare->getAccessToken( ) ..\fsauth.php:37
6 0.0558 4500072 Epifoursquare->request( ) ..\Epifoursquare.php:31
7 0.0563 4507408 EpiFoursquareJson->__get( ) ..\Epifoursquare.php:0
8 0.0563 4508392 EpiCurlManager->__get( ) ..\Epifoursquare.php:0
9 0.0563 4508392 EpiCurl->getResult( ) ..\Epifoursquare.php:437

The line which triggers the error seems to be:

usleep($outerSleepInt);

[Line 331 of Epifoursquare.php]

Can you help me?
Thanks,

MZ




Theme © iAndrew 2016 - Forum software by © MyBB