Skip to content

Instantly share code, notes, and snippets.

View mikhailkozlov's full-sized avatar

Mikhail Kozlov mikhailkozlov

View GitHub Profile
<?php
// specify the REST web service to interact with
$baseurl = '<<instanceurl>>/rest/v10';
/**
* Authenicate and get back token
*/
$curl = curl_init($baseurl . "/oauth2/token");
curl_setopt($curl, CURLOPT_POST, true);