Skip to content
Michael Haschke edited this page May 12, 2016 · 1 revision

Dribbble service class

Dribbble is a place to show and tell, promote, discover, and explore design.

Configuration values

  • username: name of user, get it from the URL, e.g. https://dribbble.com/username
  • access_token: you get the access token in two steps: 1. Create a Dribbble account, 2. Register an application. As PubwichFork doesn't use oAuth you can insert something like http://localhost/onlyUsesApiClientAccessToken as callback URL.
  • method: DribbbleShots or DribbbleLikes

... and the basic configuration for all services.

Example configuration

$dribbbleshots = array(
    'Dribbble', 'dribbleshots', array(
	'method' => 'DribbbleShots',
	'username' => 'simplebits',
	'access_token' => 'thisisnotarealaccesstokenbutanexample123456789',
	'total' => 8,
	'title' => 'Dan @ Dribbble',
	'description' => 'recent shots',
    )
);

Template keys

  • id: Id of the Dribbble shot,
  • title: Title of Dribbble shot,
  • date: creation time (formatted),
  • timestamp: creation time (microseconds),
  • description: Dribbble description,
  • likes: number of likes,
  • comments: number of comments,
  • url: link to page of Dribbble shot,
  • image_url: URL of image with higher resolution,
  • image_teaser_url: URL of thumbnail,

Example template

<li>
    <a title="{{{title}}}" href="{{{url}}}">
        <img src="{{{image_teaser_url}}}" alt="{{{title}}} ({{{date}}})" height="75" />
    </a>
</li>