1. Go to this page and download the library: Download scotteuser/pinecone-php 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/ */
scotteuser / pinecone-php example snippets
use \Probots\Pinecone\Client as Pinecone;
$apiKey = 'YOUR_PINECONE_API_KEY';
// Initialize Pinecone
$pinecone = new Pinecone($apiKey);
// Now you are ready to make requests, all requests will be authenticated automatically.
use \Probots\Pinecone\Client as Pinecone;
$apiKey = 'YOUR_PINECONE_API_KEY';
$pinecone = new Pinecone($apiKey);
// all control methods are available now, create an index or similar
// e.g. $pinecone->control()->index()
// later on you can provide the index
$pinecone->setIndexHost('INDEX_HOST_FROM_PINECONE');
// data methods are available now
// e.g. $pinecone->data()->vectors()
use \Probots\Pinecone\Client as Pinecone;
$apiKey = 'YOUR_PINECONE_API_KEY';
$indexHost = 'INDEX_HOST_FROM_PINECONE';
$pinecone = new Pinecone($apiKey, $indexHost);
// all control AND data methods are available now