Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: implement GET /photos/:id/statistics #45

Open
hbagdi opened this issue Dec 4, 2019 · 2 comments
Open

feature: implement GET /photos/:id/statistics #45

hbagdi opened this issue Dec 4, 2019 · 2 comments

Comments

@hbagdi
Copy link
Owner

hbagdi commented Dec 4, 2019

No description provided.

@ketankr9
Copy link

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)

@hbagdi
Copy link
Owner Author

hbagdi commented Dec 29, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants