With most APIs, the most time will be spent on getting Authentication right, I've study more than a few Python clients so that is a good suggestion if that one works, just to see how they do the auth. You can link the Python code if your goal is to replicate the auth scheme. Better even, accurate developer docs :-)