'Using the BitBucket 2.0 API, how can I query commits from a specific user/author?

I'm looking to fetch all repo commits from a specific user/author and I can't quite get my head around the filtering documentation from Atlassian.

Entering this in my browser (with the placeholders changed for my project) lists out 30 items from my project.

https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/commits

But I want it to list out only the commits authored by myself. I've tried all sorts or variations like:

.../commits?q=reviewers.nickname+"marknotton"

.../commits?q=user+%3D+"marknotton"

.../commits?author="marknotton"

Every variations just returns the same results. My url params are ignored, presumably because they are invalid. This could just be a silly syntax issue? Are there any examples I could refer to for help?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source