DataMine wrote: d4ne wrote:Example code to get cid, to answer my own question in this thread and others which might search it.Does your code have fallbacks? There are situations where a user's cid can't be gotten from one method. All of my tools use at least 4 different methods to get someone's cid cause it's possible for one to fail on some users.
@DataMine
Apologies for the necrobump but for anyone interested, there
is an API endpoint that will give you a CID if you supply it with a username. If you find this you won't need any fallbacks, just a single web request. I won't be sharing it but its not that hard to find. Sharing this knowledge in case anyone else ends up wasting their time looking for these fallbacks like I did.