oauth-io / sdk-php

OAuth that just works ! This is the PHP SDK for OAuth.io
https://oauth.io
86 stars 10 forks source link

syntax error in website example #12

Open PhilippeDunbar opened 9 years ago

PhilippeDunbar commented 9 years ago

Not sure where to submit a bug report for your website's examples, so im submitting here

url: https://oauth.io/getting-started?php#ii-using-the-php-sdk-auth-the-user

first php code block reads:

$request_object = $oauth->auth('the_provider', array(
    'code': $code
));

however php array key value pairs are separated with "=>" and javascript is separated with ":" so it should read

$request_object = $oauth->auth('the_provider', array(
    'code' => $code
));

(the same example is in dashboard>try auth)

PhilippeDunbar commented 9 years ago

test for life - is this maintained?