Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $clientId = 'xxxx';
- $clientSecret = 'xxxx';
- $client = new OAuth2\Client($clientId, $clientSecret);
- $client->setAccessToken('xxxx');
- $baseApiUrl = 'https://atlanticsunrise.nationbuilder.com';
- $data = array (
- 'person' => array (
- 'first_name' => 'jake',
- 'last_name' => 'Doe',
- 'email' => 'fake3@email.com'
- )
- );
- $response = $client->fetch( $baseApiUrl ."/api/v1/people" , $data, 'POST');
- echo '<pre>';
- print_r($response);
- echo '</pre>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement