PHP code example of tschucki / laravel-pr0gramm-api

1. Go to this page and download the library: Download tschucki/laravel-pr0gramm-api 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/ */

    

tschucki / laravel-pr0gramm-api example snippets


    'pr0gramm' => [
        'cookie' => env('PR0GRAMM_COOKIE'),
    ]

Pr0grammApi::User()->me();

Pr0grammApi::login('Gamb', 'Quatschtütenwürger25')

Pr0grammApi::logout()

$currentUser = Pr0grammApi::User()->me();

$userInfo = Pr0grammApi::User()->info('Gamb');

use Tschucki\Pr0grammApi\Enums\Vote;

Pr0grammApi::Post()->vote(1, Vote::UP);

// Add comment to post with id 1
Pr0grammApi::Comment()->add(1, 'Das Ablecken von Türknöpfen ist auf anderen Planeten illegal.');

// Add comment to another comment
Pr0grammApi::Comment()->add(1, 'Ich bin ne gute Nudel', 22);

Pr0grammApi::Inbox()->comments();