PHP code example of inhaleexhale / healthgraphapi

1. Go to this page and download the library: Download inhaleexhale/healthgraphapi library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

inhaleexhale / healthgraphapi example snippets

 php
pi = new InhaleExhale\HealthGraphApi(
    $clientId,
    $clientSecret
);
 php
$api->authenticationUrl($redirect, $approvalPrompt = 'auto', $scope = null, $state = null);
 php
$api->tokenExchange($code);
 php
$api->setAccessToken($accessToken);
 php
$api->get('athletes/:id/koms', ['per_page' => 100]);
 php
$api->put('athlete', ['weight' => 70]);
 php
$api->delete('activities/:id');