Code Monkey home page Code Monkey logo

geocaching-php-sdk's Introduction

Hi there ๐Ÿ‘‹

geocaching-php-sdk's People

Contributors

surfoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

geocaching-php-sdk's Issues

Class OAuth not found

Hello

im getting error;
PHP Fatal error: Class 'Geocaching\OAuth\OAuth' not found in index.php on line 38

any fixes ?

Greetings

Not sure what i'm doing wrong

Hi,

First of all this script is great, thanks.

However i'm having a few issues that i don't understand. If i use it 'straight out of the box' (on a live server) i get back the following message:

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/mrmemeco/public_html/geo/src/Geocaching/OAuth/OAuth.php on line 329

Fatal error: Uncaught exception 'Exception' with message '28' in /home/mrmemeco/public_html/geo/src/Geocaching/OAuth/OAuth.php:334 Stack trace: #0 /home/mrmemeco/public_html/geo/src/Geocaching/OAuth/OAuth.php(206): Geocaching\OAuth\OAuth->curl_request('http://staging....') #1 /home/mrmemeco/public_html/geo/index.php(50): Geocaching\OAuth\OAuth->getRequestToken() #2 {main} thrown in /home/mrmemeco/public_html/geo/src/Geocaching/OAuth/OAuth.php on line 334

If i use it in the same way but on a localhost is get back HTTP error: 0 and no data is returned.

I've done a bit of googling and i have checked that safe mode is off but I've had no joy still.

Wondered if anyone could help here. Thanks

version 4 installation with psr client

feat-v4 only is installable with the current instructions by "chance".

{
    "name": "test/foo",
    "require": {
        "surfoo/geocaching-php-sdk": "dev-feat-v4"
    }
}
$ composer update
...
$ composer why guzzlehttp/guzzle
league/oauth2-client 2.7.0 requires guzzlehttp/guzzle (^6.0 || ^7.0) 

while the oauth2-client will probably always need a psr client, this is a rather indirect way. if you require php-http/discovery in your require section, the discovery plugin will install a client if none is already installed.

it should then also be possible to remove the require-dev for php-http/curl-client (unless you need specifically that one for mocking, i did not check that)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.