Skip to content

Setup pokestops via JSON upload#5

Open
atis wants to merge 17 commits intopokepark:masterfrom
atis:master
Open

Setup pokestops via JSON upload#5
atis wants to merge 17 commits intopokepark:masterfrom
atis:master

Conversation

@atis
Copy link

@atis atis commented Jun 2, 2018

Also need to update core:

`/**

  • GetFile

  • @param $file_id
    */
    function get_file($file_id)
    {
    // Create response content array.
    $reply_content = [
    'method' => 'getFile',
    'file_id' => $file_id,
    ];

    // Encode data to json.
    $reply_json = json_encode($reply_content);

    // Set header to json.
    header('Content-Type: application/json');

    // Write to log.
    debug_log($reply_json, '>');

    // Send request to telegram api.
    return curl_json_request($reply_json);
    }
    `

florianbecker pushed a commit that referenced this pull request Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant