[关闭]
@fuyb1986 2016-11-11T08:38:47.000000Z 字数 1119 阅读 523

分享照片

金色童年


分享照片

分享照片会创建一个 circle 类型的相册,这个相册会出现在用户关联的店铺的分享相册列表里

Method and URL Structure

Method Resource URL
POST /photograph/album/share_to_circle/

Request Paramaters

Name Description Required Defalut
desc 分享时的一句话 YES
photograph_list 要分享的照片 id YES

Request Data

  1. {
  2. "desc": "分享照片的一句话",
  3. "photograph_list": [4, 5, 7]
  4. }

cURL Example

  1. curl -X POST -H 'Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b'\
  2. --data '{...}' http://localhost/photograph/album/share_to_circle/

Response

  1. {
  2. "pk":20,
  3. "name":"18516271364_cirle_album_t26bicg7f8xqq7lt",
  4. "desc":"分享图片的一句话",
  5. "private":false,
  6. "created":"2016-11-11T15:48:23.129149",
  7. "photograph_set":[{
  8. "pk":16,
  9. "owner":"xiaoming",
  10. "title":"xiaoming's photo",
  11. "desc":"南柯郡汶汶乡大槐树",
  12. "file_url":{
  13. "url":"http://www.example.com/2.jpg?e=1478850811&token=9ku9Ad9Nr0ZzrA9hy3zhFA-a5wfJqjzB0wVoZxoD:080WKjJFd4Xr-85zPfFMYZ6xEuA=",
  14. "url_150x150":"http://www.example.com/2.jpg-150x150?e=1478850811&token=9ku9Ad9Nr0ZzrA9hy3zhFA-a5wfJqjzB0wVoZxoD:dYVBAqEhmFy1qTcmL3N-JMolkIY="},
  15. "taken_date":"2016-07-01",
  16. "author":"布可朔夫",
  17. "like_count":0,
  18. "top":false,
  19. "created":"2016-11-11T15:48:23.115505",
  20. "has_collect":false
  21. },...],
  22. "like_count":0,
  23. "comment_count":0,
  24. "has_like":false
  25. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注