You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The POAP.js library currently offers various SDKs and utilities for interacting with the POAP ecosystem, including moments creation and management, TypeScript support, and easy integration with the ecosystem. To further enhance this library, we propose to add the functionality to fetch QR hash codes for a specific event using the POAP API endpoint /event/{id}/qr-codes.
This endpoint returns the list of qr_hash codes for a particular event, along with the claim status of each code for whether it has been claimed yet.
Proposed Feature
Create a new function, getEventQrCodes(eventId), that will hit the POST endpoint https://api.poap.tech/event/{id}/qr-codes, where {id} is the event's ID.
The function should return a list of qr_hash codes for the given event, along with the claim status of each code.
Why This Feature?
This feature would allow users of the library to easily fetch QR hash codes for specific events, which would be particularly useful for organizers and developers who need to manage or interact with these events.
Next Steps
Fork the repository.
Create a new branch with a descriptive name.
Implement the feature and commit the changes with a clear and concise commit message.
Create a pull request, describing the changes made and why.
The text was updated successfully, but these errors were encountered:
To integrate the endpoint into PoapDropApi.ts, you'd define a new function using an HTTP POST request to https://api.poap.tech/event/{id}/qr-codes. This function should send a Bearer token for authorization. When called, it should return a list of qr_hash codes for a specified event alongside the claim status of each code, take note that in the library, we call them mintCodes. You can follow the structure of existing functions in PoapDropApi.ts for guidance, adapting as necessary for the specifics of this endpoint.
For working with Bearer tokens, you can refer to examples in PoapTokenApi.ts and apply the same principles in PoapDropApi.ts.
Description
The POAP.js library currently offers various SDKs and utilities for interacting with the POAP ecosystem, including moments creation and management, TypeScript support, and easy integration with the ecosystem. To further enhance this library, we propose to add the functionality to fetch QR hash codes for a specific event using the POAP API endpoint
/event/{id}/qr-codes
.This endpoint returns the list of
qr_hash
codes for a particular event, along with the claim status of each code for whether it has been claimed yet.Proposed Feature
getEventQrCodes(eventId)
, that will hit the POST endpointhttps://api.poap.tech/event/{id}/qr-codes
, where{id}
is the event's ID.qr_hash
codes for the given event, along with the claim status of each code.Why This Feature?
This feature would allow users of the library to easily fetch QR hash codes for specific events, which would be particularly useful for organizers and developers who need to manage or interact with these events.
Next Steps
The text was updated successfully, but these errors were encountered: