GET data from GitHub is Possible, GET data from dribbble doesn't work

六眼飞鱼酱① 提交于 2019-12-02 12:11:47

I know it's a bit late to the answer but I recently working on some part of dribbble and come to know about these:

'https://api.dribbble.com/v1/users/'+user_id+'/buckets?access_token='+dribbble_access_token

This will provide user buckets data as:

created_at
description
id
name
shots_count
updated_at

Now to get shots you can use:

'https://api.dribbble.com/v1/buckets/'+bucket_id+'/shots?access_token='+dribbble_access_token

or

'https://api.dribbble.com/v1/users/'+user_id+'/shots?access_token='+dribbble_access_token

This will provide 12(default) shots data with all possible resolution images. Though I am still looking to any parameter to manage the limit, i.e, 12 by default.

Ok, I got the solution to set limit as well. The parameter that is to be passed is

per_page

This can receive any numeric value. So my final url is:

'https://api.dribbble.com/v1/users/'+user_id+'/shots?per_page='+limit+'&access_token='+dribbble_access_token

I have used it in a beautiful Multi social tabs module of Joomla by Webkul, have a look at it by following the link then simply check dribble tab there

I've used the jribbble plug-in, this way I don't have to register an app with dribbble.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!