Commit Graph

8 Commits

Author SHA1 Message Date
Emma Tebibyte 132d82680b Merge pull request 'Fix error when no facets are specifed' (#16) from BlankParenthesis/hopper:fix-filter into main
Reviewed-on: #16
2022-12-24 04:06:21 +00:00
Emma Tebibyte 5ae5aa668d Merge pull request 'Implement Error parsing for API responses' (#18) from BlankParenthesis/hopper:handle-status-errors into main
fixes #20
2022-12-24 03:56:06 +00:00
[ ] 552d75cbff Implement Error parsing for API responses 2022-12-09 06:01:37 +00:00
[ ] 9064888265 Add User-Agent to requests
Modrinth strongly encourages (via the following response header) that
access to their services be done with a uniquely identifying user-agent
string.

> "x-user-agent-notice": "!!!!! Hey, you! Yes, **you**! You need to
> change your User-Agent ASAP or you may be blocked from using
> Modrinth's services! For more information see the documentation:
> https://docs.modrinth.com/api-spec/#section/User-Agents !!!!!"

The one added here follows the documentation recommendation for the
"best" example of a user-agent string.
2022-12-09 05:13:43 +00:00
[ ] f7ba63b492 Fix error when no facets are specifed
The Modrinth API seemingly doesn't support an empty list for the facets
parameter. This solution simply skips adding that paremeter if it is
empty.
2022-12-09 04:18:15 +00:00
spookdot ace6b25381 Add plugins and modpack distinction 2022-09-16 18:51:55 +02:00
spookdot 6b37d007c7 Added package type filter 2022-09-12 01:05:23 +02:00
Spookdot f5b6afd790 Move functions into new HopperClient struct 2022-08-25 11:39:54 +02:00