{"id":7177,"date":"2012-08-07T00:44:32","date_gmt":"2012-08-06T15:44:32","guid":{"rendered":"http:\/\/fukata.org\/?p=7177"},"modified":"2017-08-11T23:03:31","modified_gmt":"2017-08-11T23:03:31","slug":"baas-appiaries","status":"publish","type":"post","link":"https:\/\/blog.fukata.org\/archives\/7177\/","title":{"rendered":"appiaries\u3068\u3044\u3046Baas\u3092\u4f7f\u3063\u3066\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u3063\u3066\u307f\u305f"},"content":{"rendered":"

\"Sky<\/a><\/p>\n

\u56fd\u5185\u521d\u3068\u3044\u3046Baas\u300cappiaries \uff08\u30a2\u30d4\u30a2\u30ea\u30fc\u30ba\uff09<\/a>\u300d\u3067\u30ad\u30e3\u30f3\u30da\u30fc\u30f3<\/a>\u3092\u3084\u3063\u3066\u3044\u305f\u306e\u3067\u8ab2\u984c\u3092\u9054\u6210\u3059\u308b\u306e\u306b\u4fbf\u4e57\u3057\u3066\u3001\u7a7a\u306e\u5199\u771f\u3092\u96c6\u3081\u308b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u300cSky Photo(\u03b1)<\/a>\u300d\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002<\/p>\n

\u4f7f\u3063\u3066\u3044\u308b\u6280\u8853\u306a\u3069\u306b\u3064\u3044\u3066\u66f8\u3044\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

<\/p>\n

\u4eca\u56de\u3001Sky Photo\u3092\u4f5c\u6210\u3059\u308b\u306e\u306b\u4f7f\u3063\u305f\u306e\u306fPerl\u306eDancer\u3068\u3044\u3046\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067Controller\u90e8\u5206\u306f1\u30d5\u30a1\u30a4\u30eb\u3067\u30b4\u30ea\u3063\u3068\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u30b4\u30ea\u30c3\u3068\u4f5c\u6210\u3057\u305f\u3044\u6642\u306b\u306f\u975e\u5e38\u306b\u4fbf\u5229\u3002appiaries\u3068\u306eOAuth2\u306b\u306fNet::OAuth2\u3092\u4f7f\u3063\u3066Google OAuth2\u3092\u3084\u3063\u3066\u307f\u305f<\/a>\u3067\u3082\u4f7f\u3063\u305fNet::OAuth2\u3092\u4f7f\u3063\u3066\u30b5\u30af\u30c3\u3068(\u672c\u5f53\u306f\u30b5\u30af\u30c3\u3068\u3058\u3083\u306a\u3044\u3002\u5f8c\u8ff0\u3057\u307e\u3059\u3002)\u5b9f\u88c5\u51fa\u6765\u307e\u3057\u305f\u3002<\/p>\n

\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u306e\u8ab2\u984c\u3068\u3057\u3066\u3001OAuth\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306eURL\u4f5c\u6210\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u305d\u306eURL\u3092\u8cbc\u308b\u3068\u3044\u3046\u306e\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u30e6\u30fc\u30b6\u304b\u3089\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u305f\u5199\u771f\u3092\u30a2\u30d4\u30a2\u30ea\u30fc\u30ba\u306b\u4fdd\u5b58\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3082\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u3053\u308c\u306fLWP\u3092\u4f7f\u3063\u3066\u5358\u7d14\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u3060\u3051\u3067\u3059\u3002\u30b3\u30fc\u30c9\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n

\r\nmy $ua = LWP::UserAgent->new;\r\nmy $response = $ua->request(POST(\r\n    \"https:\/\/api-datastore.appiaries.com\/bin\/_sandbox\/sky_photo\/photos\/_new?get=true&access_token=$application_token\",\r\n    Content_Type => 'form-data',\r\n    Content => {\r\n        _type => 'image\/jpeg',\r\n        _filename => $filename,\r\n        _file => [ $filepath ],\r\n    },  \r\n));\r\n<\/pre>\n

\u3059\u3054\u3044\u7c21\u5358\u3067\u3059\u306d\u3002<\/p>\n

\u5199\u771f\u3092\u77ed\u518a\u72b6\u306b\u4e26\u3079\u308b\u306e\u306bjquery.vgrid.js<\/a>\u3092\u4f7f\u3044\u307e\u3057\u305f\u3002\u975e\u5e38\u306b\u4f7f\u3044\u3084\u3059\u304f\u3066\u4fbf\u5229\u306a\u306e\u3067\u3001\u540c\u3058\u3088\u3046\u306b\u753b\u50cf\u3092\u4e26\u3079\u308b\u3088\u3046\u306a\u30b5\u30fc\u30d3\u30b9\u3067\u306f\u3069\u3093\u3069\u3093\u4f7f\u3063\u3066\u3044\u304d\u305f\u3044\u611f\u3058\u3002<\/p>\n

\u30c7\u30b6\u30a4\u30f3\u306b\u3064\u3044\u3066\u306f\u3001Bootswatch\u304b\u3089Bootswatch: Cerulean<\/a>\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u30cf\u30de\u3063\u305f\u70b9<\/h2>\n

\u307e\u305a\u306f\u3001OAuth\u3067\u306e\u3053\u3068\u3002\u5168\u304f\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u8aad\u307e\u305a\u306b\u5b9f\u88c5\u3057\u3066\u3044\u305f\u3089OAuth\u3067Invalid ClientID\u304c\u9023\u767a\u3002\u3002\u3002\u7d50\u5c40\u3001\u30a2\u30d7\u30ea\u306eClient Type\u304cPublic\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u306b\u8a8d\u8a3c\u65b9\u6cd5\u3068\u3057\u3066\u8a8d\u53ef\u30b3\u30fc\u30c9\u30b0\u30e9\u30f3\u30c8<\/a>\u3092\u5229\u7528\u3057\u3066\u3044\u305f\u3068\u3044\u3046\u30aa\u30c1\u3002Client Type\u3092Confidential\u306b\u5909\u66f4\u3057\u3066\u3042\u3063\u3055\u308a\u6210\u529f\u3002<\/p>\n

\u6b21\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u3064\u3044\u3066\u3001\u4eca\u5ea6\u306f\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u8aad\u3093\u3067\u307f\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u969b\u306b\u8a8d\u8a3c\u3057\u305f\u30e6\u30fc\u30b6\u306e\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u304c\u5fc5\u8981\u3068\u306e\u3053\u3068\u3002\u305f\u3060\u3001\u3069\u306e\u30e6\u30fc\u30b6\u306b\u3082\u5c5e\u3055\u306a\u3044\u3088\u3046\u306a\u30c7\u30fc\u30bf\u3067\u306e\u5229\u7528\u304c\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u63a2\u3057\u3066\u307f\u308b\u3068\u4ed6\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u30ec\u30d9\u30eb\u306b\u3064\u3044\u3066\u3042\u308a\u307e\u3057\u305f\u3002\u30a2\u30af\u30bb\u30b9\u30ec\u30d9\u30eb\u3092ALL\u306b\u3059\u308b\u3068\u53c2\u7167\u4ee5\u5916\u306b\u3064\u3044\u3066\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30c8\u30fc\u30af\u30f3\u3067\u306e\u8a8d\u8a3c\u304c\u884c\u3048\u308b\u3068\u306e\u3053\u3068\u3060\u3063\u305f\u306e\u3067\u3001\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3057\u305f\u3002<\/p>\n

Sky Photo\u306b\u3064\u3044\u3066<\/h2>\n

\u7a7a\u306e\u5199\u771f\u3092\u500b\u4eba\u7684\u306b\u96c6\u3081\u305f\u304b\u3063\u305f\u306e\u3067\u4f5c\u3063\u3066\u307f\u305f\u3093\u3067\u3059\u304c\u3001\u305b\u3063\u304b\u304f\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u30ea\u30ea\u30fc\u30b9\u3057\u305f\u306e\u306f\u3044\u3044\u3093\u3067\u3059\u304c\u3001\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u306b\u307e\u3060\u5229\u7528\u8005\u304c\u591a\u3044\u3068\u306f\u8a00\u3048\u306a\u3044\u30a2\u30d4\u30a2\u30ea\u30fc\u30ba\u306e\u307f\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u5c11\u3057\u3067\u3082\u591a\u304f\u306e\u4eba\u306b\u5229\u7528\u3057\u3066\u3082\u3089\u3048\u308b\u3088\u3046\u306bTwitter, Facebook\u3067\u306eOAuth\u3082\u3064\u3051\u3088\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u30b9\u30de\u30db\u304b\u3089\u6c17\u8efd\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30a2\u30d7\u30ea\u306b\u3064\u3044\u3066\u3082\u4f5c\u6210\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u56fd\u5185\u521d\u3068\u3044\u3046Baas\u300cappiaries \uff08\u30a2\u30d4\u30a2\u30ea\u30fc\u30ba\uff09\u300d\u3067\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u3092\u3084\u3063\u3066\u3044\u305f\u306e\u3067\u8ab2\u984c\u3092\u9054\u6210\u3059\u308b\u306e\u306b\u4fbf\u4e57\u3057\u3066\u3001\u7a7a\u306e\u5199\u771f\u3092\u96c6\u3081\u308b\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u300cSky Photo(\u03b1)\u300d\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002 \u4f7f … \u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":9223372036854775807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1980],"tags":[986,880,985],"_links":{"self":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/7177"}],"collection":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/comments?post=7177"}],"version-history":[{"count":0,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/7177\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media\/9223372036854775807"}],"wp:attachment":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media?parent=7177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/categories?post=7177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/tags?post=7177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}