topic/post.json 概要

トピック投稿

リクエスト

パラメータ 説明
id integer トピックのIDを指定します。更新の場合は*必須です。
community_id integer コミュニティのIDを指定します。新規作成の場合は*必須です。
name *必須 string トピックのタイトルを指定します。
body *必須 string トピックの本文を指定します。

レスポンス

フィールド名 説明
id トピックID
community_id コミュニティID
community_name コミュニティの名前
member トピック所有者メンバーの情報(詳しくは レスポンスの共通仕様 を参照)
name トピックのタイトル
body トピックの本文
created_at トピックの作成時間
images トピックに添付された画像のリスト
editable トピックが編集可能かどうかのフラグ

サンプルリクエスト

$ curl -XPOST -d 'apiKey=cdc4042edf74db746f5bf550039bf50979da2566aa514fc0aac8f57c56398be5&community_id=1&name=bbbbbb&body=bbbbbbbbb' http://example.com/api.php/topic/post.json

サンプルレスポンス

  1. {
  2. "status":"success",
  3. "data":{
  4. "id":"5",
  5. "community_id":"1",
  6. "community_name":"all",
  7. "name":"bbbbbb",
  8. "member":{
  9. "id":"1",
  10. "profile_image":"http:\/\/example.com\/images\/no_image.gif",
  11. "screen_name":"OpenPNE\u541b",
  12. "name":"OpenPNE\u541b",
  13. "profile_url":"\/member\/1",
  14. "friend":false,
  15. "blocking":false,
  16. "self":true,
  17. "friends_count":0,
  18. "self_introduction":null
  19. },
  20. "body":"bbbbbbbb",
  21. "created_at":"2012-09-27 14:57:57",
  22. "ago":"5\u79d2\u4ee5\u5185",
  23. "editable":false,
  24. "images":[]
  25. }
  26. }