Hello,
This is probably a problem between the chair and the keyboard, but I can’t get ‘before_id’ to work in the API
I’m doing this (in Powershell):
$headers = @{
"Authorization" = "Bearer $Token"
"Content-Type" = "application/json"
}
then:
Invoke-RestMethod -Uri "https://micro.blog/posts/mattypenny?before_id=54031284" -Method Get -Headers $headers | select -expand items
…and I’m expecting that to return posts before the post with that id, but it’s just returning the most recent posts
The ‘count’ clause, by contrast, does seem to have an impact. If I do this:
Invoke-RestMethod -Uri "https://micro.blog/posts/mattypenny?count=2" -Method Get -Headers $headers | select -expand items
…it does limit the number of posts returned (albeit it returns 4 posts rather than 2 posts).
Am I doing something wrong?