Skip to content

Instantly share code, notes, and snippets.

@voxpelli
Created December 30, 2010 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voxpelli/759648 to your computer and use it in GitHub Desktop.
Save voxpelli/759648 to your computer and use it in GitHub Desktop.
<?php
$provider = new stdClass;
$provider->disabled = FALSE; /* Edit this to true to make a default provider disabled initially */
$provider->name = 'digg';
$provider->title = 'Digg';
$provider->url = 'http://services.digg.com/1.0/endpoint';
$provider->consumer_advanced = array(
'signature method' => 'HMAC-SHA1',
'authentication realm' => 'http://services.digg.com/',
'request token endpoint' => '?method=oauth.getRequestToken',
'authorization endpoint' => 'http://digg.com/oauth/authenticate',
'access token endpoint' => '?method=oauth.getAccessToken',
);
$provider->mapping = array(
'fields' => array(
'uid' => array(
'resource' => 'http://services.digg.com/1.0/endpoint?method=oauth.verify',
'method post' => 1,
'field' => 'user',
'querypath' => 1,
),
'real name' => array(
'resource' => 'http://services.digg.com/1.0/endpoint?method=oauth.verify',
'method post' => 1,
'field' => 'user',
'querypath' => 1,
),
'avatar' => array(
'resource' => '',
'method post' => 0,
'field' => '',
'querypath' => 0,
),
),
'format' => 'json',
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment