mirror of
https://github.com/metowolf/Meting.git
synced 2026-09-03 07:27:07 +08:00
post try
sodo
This commit is contained in:
14
index.php
Normal file
14
index.php
Normal file
@@ -0,0 +1,14 @@
|
||||
// If you installed via composer, just use this code to requrie autoloader on the top of your projects.
|
||||
require 'vendor/autoload.php';
|
||||
|
||||
// Else use require file
|
||||
// require 'Meting.php';
|
||||
|
||||
// Initialize to netease API
|
||||
$API = new Meting('netease');
|
||||
|
||||
// Enjoy
|
||||
$result = $API->format(true)->search('Soldier');
|
||||
$data = json_decode($result);
|
||||
header('Content-type: application/json; charset=UTF-8');
|
||||
echo json_encode($data,JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES);
|
||||
Reference in New Issue
Block a user