PHP code example of sleemkeen / fireflies

1. Go to this page and download the library: Download sleemkeen/fireflies 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/ */

    

sleemkeen / fireflies example snippets


use Sleemkeen\Fireflies\Fireflies;
// Get current user
$user = Fireflies::getCurrentUser($fields);

// Get specific user
$user = Fireflies::getUser($fields, $userId);

// Set user role
$result = Fireflies::setUserRole($userId, $role);

// Get all transcripts
$transcripts = Fireflies::getTranscripts($fields);

// Get specific transcript
$transcript = Fireflies::getTranscript($transcriptId, $fields);

// Delete transcript
$result = Fireflies::deleteTranscript($transcriptId);

// Get all bites
$bites = Fireflies::getBites($fields);

// Get specific bite
$bite = Fireflies::getBite($biteId, $fields);

// Get transcript bites
$bites = Fireflies::getTranscriptBites($transcriptId, $fields);

// Create bite
$bite = Fireflies::createBite($transcriptId, $startTime, $endTime);

// Update bite privacy
$result = Fireflies::updateBitePrivacy($biteId, $privacies);

// Upload audio
$result = Fireflies::uploadAudio($audioUrl, $options);

// Add to live meeting
$result = Fireflies::addToLiveMeeting($meetingLink);


// Get AI Apps outputs
$options = [
    'app_id' => 'your-app-id',
    'transcript_id' => 'transcript-id',
    'skip' => 0,
    'limit' => 10
];
$outputs = Fireflies::getAIAppsOutputs($options, $fields);
bash
php artisan vendor:publish --provider="Sleemkeen\Fireflies\FirefliesServiceProvider"