Need help to create a attach file api

Need help to create a attach file api



https://www.zoho.com/crm/developer/docs/api/v8/upload-attachment.html

Please help me to create it... 

It's not working for while.

Do you have some example?