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.

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments Protection Status
Would love your thoughts, please comment.x