NOTE: I know the API isn’t officially supported/documented but I thought that at least someone might know something
Question:
When using the GraphQL API, it’s possible to retrieve bounty applications using the bountyApplicationSearch
query. However, I was only able to retrieve rejected and “not reviewed” applications. How do I query for the “accepted” application for “in progress” or “completed” bounties? (On the actual bounty detail page, it seems like this is part of the HTML response from the server - it’s not loaded asynchronously by the JS)
Repl link:
https://replit.com/@GrimSteel/The-Hunter-Directory#api.js
query BountyPageApplicationsSearch($input: BountyApplicationSearchInput!) {
bountyApplicationSearch(input: $input) {
... on BountyApplicationConnection {
items {
id
status
}
}
}
}
$input
is:
{
bountyId: 123, // change this to something with an accepted application
count: 50,
order: "recommended",
status: "rejectedAndNotReviewed"
}
Some experimenting showed that the status
field can be “accepted”, “rejected”, “all”, and “rejectedAndNotReviewed”, but none of these, including “accepted”, return the accepted application.
Also, is it possible to retrieve applications directly on the Bounty
object? I found this Bounty Score Repl from @RayhanADev which includes applications
and latestSubmission
on the Bounty object but those don’t seem to work anymore.
Thanks!
My friend @IMGROOT2 asked about this for me on the Discord server but it doesn’t hurt to ask here too