go-unsplash icon indicating copy to clipboard operation
go-unsplash copied to clipboard

feature: implement GET /photos/:id/statistics

Open hbagdi opened this issue 5 years ago • 2 comments
trafficstars

hbagdi avatar Dec 04 '19 05:12 hbagdi

But that is already implemented as link, right?

// Statistics return a stats about a photo with id.
func (ps *PhotosService) Statistics(id string, opt *StatsOpt) (*PhotoStatistics, *Response, error) {
...
	endpoint := fmt.Sprintf("%v/%v/statistics", getEndpoint(photos), id)

And also currently there isn't any api with /photos/:id/stats, maybe deprecated, can you please verify? link

// Stats return a stats about a photo with id.
func (ps *PhotosService) Stats(id string) (*PhotoStats, *Response, error) {
...
	endpoint := fmt.Sprintf("%v/%v/stats", getEndpoint(photos), id)

ketankr9 avatar Dec 29 '19 13:12 ketankr9

The response on stats and statistics are different. The endpoint is deprecated and unsupported now and we should remove it from this library as well.

hbagdi avatar Dec 29 '19 21:12 hbagdi