thephpleague / oauth1-client

OAuth 1 Client
MIT License
968 stars 73 forks source link

fix passing host, and hosts with different port for magento #36

Closed chrissachs closed 9 years ago

chrissachs commented 9 years ago

I tried to run this code to connect to a local magento installation:

$magento = new \League\OAuth1\Client\Server\Magento(array(
    'host' => 'http://127.0.0.1:8080/',
    'identifier' => 'identifier',
    'secret' => 'secret',
    'callback_uri' => 'http://localhost',
    'admin' => true, // optional, default false
));
bencorlett commented 9 years ago

Awesome! Thanks!