Skip to content

Instantly share code, notes, and snippets.

API v4

базовый адрес: https://goodgame.ru/api/4/

ниже идут найденные методом тыка эндпоинты

для некоторых приведены примеры запроса,
для остальных они не известны и приведены коды ответов для запросов без параметров

@campusboy87
campusboy87 / remote-post-with-files.php
Created April 7, 2021 15:50 — forked from kagg-design/remote-post-with-files.php
Example of how to send files to the remote server.
$boundary = str_repeat( '-', 24 ) . wp_generate_password( 16 );
$headers = array(
'content-type' => 'multipart/form-data; boundary=' . $boundary,
);
if ( ! isset( $files['path'] ) ) {
$error_message = 'Invalid arguments';
return array( $success, $error_message, $word_count, $individual_word_count );
}
@campusboy87
campusboy87 / function_v2.php
Created June 21, 2018 21:20 — forked from andxbes/function_v2.php
cf-7 append additional information to mail
<?php
//see https://yadi.sk/i/M5hhJKkU3MkRdN
add_filter("wpcf7_mail_components", function($components, $curent_cf, $sender ){
date_default_timezone_set('America/Sao_Paulo');
$data = date("Y-m-d H:i:s");
$components['body'] = str_replace("[protocol]", $data , $components['body'] );
<?php
/**
* Function
*
* @param [string|null] $dir Directory
* @return mixed
*/
function dir_to_array( $dir = null ) {
$result = array();