How to authenticate to XTRF using REST API with PHP, CURL

Today I would like to write about Authenticating to XTRF using Rest API with PHP. After authenticating we can manage users, projects, and estimate ..etc.

Below is the function of making a post request to XTRF REST API with your credentials.

How to use

Just pass the username and password to the function as shown below, after success full authentication it will create a cookie file, we need this generated cookie for further operations(for making other API requests) like getting projects list, Estimations list..etc.

That’s it.

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

Arjun
I am Arjun from Hyderabad (India). I have been working as a software engineer from last 7+ years, and its my passion to learn new things and implement them as a practice. Aside from work, I likes gardening and spending time with pets.
DMCA.com Protection Status