F@H API not finding certain users
Posted: Fri Mar 10, 2017 5:27 pm
I've noticed something... interesting about the F@H API. If I were to search for myself ( started folding ~24h ago ) I cannot find myself. I have tried with both ?name= and ?passkey= and provided the proper passkey.
Example: /stats/api/donors?name=Eegras%5BPCMR%5D
If I use the API to get my donor page explicitly ( not searching ) it finds me no problem.
Example: /stats/api/donor/Eegras%5BPCMR%5D
Our use-case is we want to start trying to funnel more people in our community to using F@H so have come up with a way to reward our Folders with a special flair on Reddit. We are going to do this by requesting our Folders provide their Passkey to a site we've made, but I can't test because my passkey isn't finding my user.
By default /api/donors returns only the top 100 users, but a user by the name of PedroPCMR is not in the top 100 but shows up in the search ( /stats/api/donors?name=PedroPCMR ). PedroPCMR shared with me his passkey to test and I am able to use his passkey to find his user.
Example: /stats/api/donors?name=Eegras%5BPCMR%5D
If I use the API to get my donor page explicitly ( not searching ) it finds me no problem.
Example: /stats/api/donor/Eegras%5BPCMR%5D
Our use-case is we want to start trying to funnel more people in our community to using F@H so have come up with a way to reward our Folders with a special flair on Reddit. We are going to do this by requesting our Folders provide their Passkey to a site we've made, but I can't test because my passkey isn't finding my user.
By default /api/donors returns only the top 100 users, but a user by the name of PedroPCMR is not in the top 100 but shows up in the search ( /stats/api/donors?name=PedroPCMR ). PedroPCMR shared with me his passkey to test and I am able to use his passkey to find his user.