Skip to content

Instantly share code, notes, and snippets.

@httpspace
Last active September 27, 2016 13:13
Show Gist options
  • Save httpspace/91f0ea28148be6692025fc5674b90600 to your computer and use it in GitHub Desktop.
Save httpspace/91f0ea28148be6692025fc5674b90600 to your computer and use it in GitHub Desktop.
MF 投稿API
/*
|----------------------------------------------------------------------------------------------------------
| MF POST API 新增文章
|----------------------------------------------------------------------------------------------------------
|http://fans.tests99.com/api/v2/create_message.php?key=***
|----------------------------------------------------------------------------------------------------------
| @param string $_POST['message'] 發佈的訊息 default empty
| @param string $_POST['url'] 網址 default empty
| @param string $_POST['photo_url'] 指定圖片網址 default empty
| @param string $_POST['media_url'] 指定圖片網址 default empty
| @param string $_POST['gid'] 群組id(必填)(複數群組以,隔開)
| @param number $_POST['type'] 訊息類型 (0.非廣告文 1.廣告文 2.影片推廣文 3.事件文 4.投稿文 ) default 1
| @param number $_POST['page_id'] 粉絲團ID 當投稿文時為必填
|----------------------------------------------------------------------------------------------------------
| 回傳 json array()
| 範例1 ['status' => true, 'id' => 123];
| 範例2 投稿 ['status' => true, 'id' => 123, 'ready_time' => '2016-09-27 18:05:00'];
|----------------------------------------------------------------------------------------------------------
|----------------------------------------------------------------------------------------------------------
| MF POST API 查詢投稿文章
|----------------------------------------------------------------------------------------------------------
|http://fans.tests99.com/api/v2/search_message.php?key=***
|----------------------------------------------------------------------------------------------------------
| @param int $_POST['id'] 發佈的訊息 default empty
|----------------------------------------------------------------------------------------------------------
|回傳 json array()
|範例 ['status' => true, 'data' => [
| 'ready_time' => "2016-09-27 18:05:00",
| post_time => "0000-00-00 00:00:00",
| link => "",
| status => 3 //數字含意: 1預約發佈 2.發佈完成 3.發佈失敗等候下次排程
| ]];
|----------------------------------------------------------------------------------------------------------
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment