NetsoftHoldings / public-api-php-demo

PHP demo application showing how to access the Hubstaff Public API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Way too complicated

fulldecent opened this issue · comments

Can I please get one or two lines of cURL that achieve the same thing as all this PHP?

In the simplest form making a request is simply sending the access token in an Authorization: Bearer {token} header. However you have to have some script code around to consult the expiration of the access token and process refreshing it once a day and saving the updated access/refresh token from that process..

Read our auth docs on PAT