Change Using access_token example to use curl