SDKs and libraries
Get a test key from the dashboard. Store it only on the server in PEREVAL_API_KEY. Check that mode is sandbox before writing data.
Go 1.23+
go get github.com/pereval-dating/pereval-go@v1.1.0
package main
import (
"context"
"fmt"
"log"
"os"
"github.com/pereval-dating/pereval-go"
)
func main() {
client, err := pereval.New(
"https://api.pereval.dating",
os.Getenv("PEREVAL_API_KEY"),
)
if err != nil {
log.Fatal(err)
}
ctx := context.Background()
caps, err := client.Capabilities.Get(ctx)
if err != nil {
log.Fatal(err)
}
fmt.Println(caps.Mode, caps.ProtocolVersion)
}
PHP 7.4+ · cURL
composer require pereval-dating/pereval-php
<?php
require __DIR__ . '/vendor/autoload.php';
$client = new Pereval\Client(getenv('PEREVAL_API_KEY'));
$caps = $client->capabilities->get();
echo $caps['mode'], ' ', $caps['protocol_version'], PHP_EOL;
JavaScript / TypeScript · Node.js 20+
npm install pereval-dating
// check.mjs
import { Client } from "pereval-dating";
const client = new Client(process.env.PEREVAL_API_KEY);
const caps = await client.capabilities.get();
console.log(caps.mode, caps.protocol_version);
Python 3.10+
python -m pip install pereval-dating
import os
from pereval import Client
with Client(os.environ["PEREVAL_API_KEY"]) as client:
caps = client.capabilities.get()
print(caps["mode"], caps["protocol_version"])
Symfony · Component
Use the component to register the client in your existing container. Choose the bundle for automatic service configuration in Symfony. You only need one of these options.
composer require pereval-dating/pereval-symfony
use Pereval\Symfony\PerevalServices;
PerevalServices::client($container, '%env(PEREVAL_API_KEY)%');
Symfony · Bundle
composer require pereval-dating/pereval-bundle
Register the bundle in config/bundles.php if needed, then check the key.
Pereval\Bundle\PerevalBundle::class => ['all' => true],
php bin/console pereval:check --expect=sandbox
Next steps
Sample applications show how two platforms exchange profiles, likes and messages. Try webhook verification without a key. With one test key, follow the sandbox walkthrough.