写真情報の取得
次は,
{
"data": [
{
"id": "file.xxxxx",
"from": {
"name": "梓 中野",
"id": "xxxxx"
},
"name": "azusa.jpg",
"description": null,
"parent_id": "folder.XXXXX",
"size": 486730,
"comments_count": 0,
"comments_enabled": false,
"tags_count": 0,
"tags_enabled": true,
"picture": "http://storage.live.com/...",
"source": "http://storage.live.com/...",
"images": [
{
"height": 380,
"width": 800,
"source": "http://storage.live.com/...",
"type": "normal"
}, {
"height": 83,
"width": 176,
"source": "http://storage.live.com/...",
"type": "album"
}, {
"height": 45,
"width": 96,
"source": "http://storage.live.com/...",
"type": "thumbnail"
}, {
"height": 975,
"width": 2048,
"source": "http://storage.live.com/...",
"type": "full"
}
],
"link": "https://skydrive.live.com/redir.aspx?cid...",
"when_taken": null,
"height": 975,
"width": 2048,
"type": "photo",
"created_time": "2012-02-09T15:00:00+0000",
"updated_time": "2012-02-09T17:00:00+0000"
}
]
}
写真を表すPhotoオブジェクトの内容は次の通りです。Fileオブジェクトにはない項目は太字にしています。images配列からサムネイル画像を取得できます。また,
プロパティ | 型 | 説明 |
---|---|---|
data | array | Photoオブジェクトを含む配列 |
id | string | PhotoオブジェクトのID |
from | object | 作成者の情報 |
name |
string | 作成者の名前 |
id |
string | 作成者のユーザーID |
name | string | 写真のファイル名 |
description | string | 説明 |
parent_ |
string | この写真の上位階層のリソースID |
size | number | 写真のサイズ |
comments_ |
number | 写真に付けられたコメント数 |
comments_ |
true/ |
写真にコメント可能かどうか |
tags_ |
number | 写真に付けられたタグ数 |
tags_ |
true/ |
写真にタグ埋め込み可能かどうか |
picture | 写真のURL | |
source | string | 写真のダウンロード用のURL |
images | array | 異なる大きさの写真の情報 |
height |
number | 高さ |
width |
number | 幅(ピクセル) |
source |
string | 特定の大きさの写真のURL |
type |
string | 大きさの種類 次の値のいずれか
|
link | string | SkyDrive上での写真のURL |
upload_ |
string | アプリから写真をアップロードするためのURL Scope |
when_ |
string/ |
撮影日時 |
height | number | 高さ |
width | number | 幅(ピクセル) |
type | string | オブジェクトの種類 写真の場合は, |
created_ |
string | 写真の作成日時 |
updated_ |
string | 写真の最終更新日時 |
shared_ |
object | 写真の共有情報 |
access |
string | 写真の共有情報 次の値のいずれか
|
Fileオブジェクトにあった,
また,