PHP code example of pecee / happn-php-sdk

1. Go to this page and download the library: Download pecee/happn-php-sdk 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/ */

    

pecee / happn-php-sdk example snippets


$happn = new \Pecee\Http\Service\Happn($fbToken);

$response = $happn->getUserInfo($userId);

$response = $happn->getRecommendations($limit = 16, $offset = 0);

$response = $happn->getDistance($userId);

$response = $happn->setSettings(array $userId);

$response = $happn->setPosition($lat, $lon);

$response = $happn->updateActivity();

$response = $happn->getUserId();

$response = $happn->getFbToken();

$response = $happn->api($url, $method, array $data);
json
{
    "ecee/happn-php-sdk": "1.*"
    },
    "