SlideShare a Scribd company logo
1 of 35
Download to read offline
Data API 2.0 
MTDDC Meetup Tokyo 2014 
2014.11.29 (Sat) 
Yuji Takayama@Six Apart
My Social 
icon 
YUJI TAKAYAMA 
Six Apart, Ltd. 
Senior Product Manager 
Movable Type Lead Engineer 
Twitter: @yuji 
Facebook: Yuji Takayama 
Github: yuji 
Mail: ytakayama@sixapart.com
Today’s Agenda 
Movable Type Data API Overview 
Movable Type Data API とはなにか? 
Why Movable Type offers API? 
なぜ、Movable Type は API を提供しているのか? 
Introduce Data API v2.0 
Movable Type Data API v2.0 のご紹介。v1.0 との違いについても
Data API Overview
Movable Type 
Data API 
REST/JSON API for every websites and applications 
Released with Movable Type 6.0 on Oct 17, 2013
Data API Features 
REST / JSON API 
特殊な処理を必要としない URL ベースの呼び出しと、結果は扱いやすい JSON 形式をサポート 
MT Authentication and Role based permission 
Movable Type が提供するロールベースのユーザー管理機能を利用した認証機能を提供 
Pluggable / Extensible 
Movable Type らしく拡張性も重視。プラグイン (Perl) によるエンドポイントの拡張、 
コールバックを利用したフィルター処理、JSON 以外の出力形式を追加することも 
JavaScript library available 
JavaScript 用の開発ライブラリを標準提供。ブラウザの差異も吸収
Data API Show Case 1 
Six Apart のごはんレシピ 
• 新着一覧に表示するレシピを Data API で無限スクロール 
• ページ遷移が必要ない 
• 【利用者目線】気になるレシピを探しやすく 
• 【制作者目線】ページ分割のための再構築が不要 = 負荷が低減 
http://makanai.sixapart.jp/
Data API Show Case 2 
ワンダードライビング 
• Google Analytics と連携し、アクセス数の多い記事をランキング表示 
• ほぼリアルタイムにページを更新 
• 独自開発したサムネイル作成用エンドポイント 
http://wonderdriving.com/
Data API Show Case 3 
Loupe 
• サイトのアクセス数を取得してグラフ表示 
• 撮影した写真をすばやくアップロード 
• 記事へのコメントにすばやく返信 
• デバイスに最適化されたページ 
• 必要なデータだけを送受信することで通信コストの低減
Data API Show Case 4 
Movable Type Writer (仮) 
• Movable Type の管理画面を使わずに記事を投稿 
• Movable Type の管理画面を改造せずに、ニーズに併せる 
• Google Chrome App 
• おもいついた時にパッと書ける 
• コンテンツに合わせた、適切なラベルと適切な配置で独自アプリに
Why Movable Type offers API?
Build web pages 
Responsive Web Design 
Templates 
<html> 
Content
The web of Things 
“The Web of Things (WoT) is a set of software architectural styles and programming patterns that 
allow real-world objects to be part of the World Wide Web. Similarly to what the Web 
(Application Layer) is to the Internet (Network Layer), the Web of Things provides an Application 
Layer that simplifies the creation of Internet of Things applications. 
Rather than re-inventing completely new standards, the Web of Things reuses existing and well-known 
Web standards used in the programmable Web (e.g, REST, HTTP, JSON), semantic Web 
(e.g., JSON-LD, Microdata, etc.), the real-time Web (e.g, Websockets) and the social Web (e.g., 
oauth or social networks).” 
— Wikipedia http://en.wikipedia.org/wiki/Web_of_Things —
Build web pages 
Web Browser 
Digital Car fridge 
Signage 
Mobile Applications 
Templates 
TV Watch 
Data API 
<html> 
Content 
Data API 
Any Devices
Why Movable Type offers API? Because… 
The Web of Things 
PCやスマホだけにとどまらず、広がっていくウェブの世界 
Mobile First, Content First 
モバイル端末での閲覧に最適化。コンテンツを配信することで通信を最適化 
Dynamic Site 
リッチな表現は必要に応じてフロント側で実現
Introduce Data API 2.0
Data API Endpoints for v1 
CREATE READ UPDATE DELETE LIST 
Entries ◯ ◯ ◯ ◯ ◯ 
Comments ◯ ◯ ◯ ◯ ◯ 
Categories ◯ △ 
Blog/Websites ◯ ◯ 
Trackbacks ◯ ◯ ◯ ◯ 
Users ◯ ◯ 
Site Statistics ◯ 
Assets ◯ (Upload)
Data API Endpoints for v2 
CREATE READ UPDATE DELETE LIST 
Entries ◯ ◯ ◯ ◯ ◯ 
Comments ◯ ◯ ◯ ◯ ◯ 
Categories  ◯    
Blog/Websites  ◯   ◯ 
Trackbacks ◯ ◯ ◯ ◯ 
Users  ◯ ◯   
Available Endpoints are 
Site Statistics ◯ 
Assets ◯ (Upload)     
350% up from v1! 
Custom Fields      
Logs      
Groups / Group Members      
Pages      
Roles      
Folders      
Templates / Widgets      
Tags      
Themes  
Permissions  
Search 
Data API v2.0 Features 
Create/read/update/delete every objects 
ほぼすべてのオブジェクトについて、CRUDのエンドポイントをサポート 
Assign categories to an entry, save categories order 
記事へのカテゴリの割り当てはもとより、カテゴリの順序を保存することも 
Restrict Data API access for each site 
各サイト単位で Data API のアクセスを禁止することが可能に 
Search entries across the each site 
サイトを横断して記事の検索が可能に
Data API v2.0 Features 
Make a thumbnail for an asset 
任意のサイズのサムネイル画像を作成可能に 
Make a log from a front side 
フロントエンドで発生したイベントもログに書き込み可能に 
Build index/archive template 
インデックス・テンプレート、アーカイブテンプレートの再構築を実行可能に 
Run backup/restore 
バックアップの生成はもとより、バックアップファイルを指定した復元も
Data API v2.0 Features 
and more……
Online document available (now writing…) 
http://docs.movabletypedataapi.apiary.io/
Data API 2.0 - Demo
Mobile Application x Data API x Website 
Mobile Applications 
Available at Data API v1.0 Available at Data API v2.0 
Web Browser 
Upload via Data API 
Make thumbnail via 
Rebuild main index via Data API 
Data API
<body> 
<div> 
<h1>Login</h1> 
<button id="login" name="login" value="login">Login</button> 
</div> 
<div> 
<h1>Upload</h1> 
<form id="form"> 
<input type="hidden" name="site_id" value="1"> 
<input type="hidden" name="autoRenameIfExists" value="1"> 
<div>Path: <input type="text" name="path" id="path" value="/"></div> 
<div>File: <input type="file" name="file" id="upload_file"></div> 
<input type="submit"> 
</form> 
<div id="result"></div> 
</div> 
<script> 
…. 
</script> 
</body>
Show Login Form 
$('#login').click( function() { 
location.href = 
“http://path/to/mt-data-api.cgi/v2/authorization?redirectUrl=“ + 
encodeURIComponent( window.location ) + "&clientId=TestApp"; 
});
Upload File 
var fd = new FormData($('#form').get(0)); 
$.ajax({ 
url: “http://path/to/mt-data-api.cgi/v2/assets/upload", 
type: "POST", 
data: fd, 
processData: false, 
contentType: false, 
dataType: 'json', 
headers: { 
'X-MT-Authorization': token 
} 
})
Get thumbnail 
.done(function( data ) { 
var url = “http://path/to/mt-data-api.cgi/v2/sites/1/assets/" + 
data.id + "/thumbnail?width=200&square=1" 
$.ajax({ 
url: url, 
type: "GET", 
dataType: 'json' 
}) 
.done(function( data ) { 
$('#result').append('<img src="' + data.url + '" width="200">'); 
}); 
});
Rebuild main index file 
var url = “http://path/to/mt-data-api.cgi/v2/sites/1/templates/35/publish”; 
$.ajax({ 
url: url, 
type: "POST", 
headers: { 
'X-MT-Authorization': t 
} 
}) 
.done(function( data ) { 
alert('Done!'); 
}); 
Template ID of 
Main Index 
Authentication 
required
Data API 2.0 will be available in 
Movable Type 6.1 (early 2015)
One more thing…
告知
CMS として長い歴史を持つ Movable Type と WordPress について、 
今どきの開発トレンドと運用についてのイベントを札幌で開催します! 
※真面目な IT 勉強会です。 
※沖縄で遺恨は何一つありませんw
Movable Type を CMS として使用してウェブサイトを構築するときに、 
「コレは入れるよね!」というお気に入りのプラグインを投票していただき、 
2014年の「Movable Type プラデミー賞」を決定します。
Thank you for listening 
Have fun with Movable Type and Data API !!!

More Related Content

What's hot

Movable Type as a Playground
Movable Type as a PlaygroundMovable Type as a Playground
Movable Type as a PlaygroundTaku AMANO
 
Data API ことはじめ
Data API ことはじめData API ことはじめ
Data API ことはじめYuji Takayama
 
Data API + AWS = (CMS どうでしょう 札幌編)
Data API + AWS =  (CMS どうでしょう 札幌編)Data API + AWS =  (CMS どうでしょう 札幌編)
Data API + AWS = (CMS どうでしょう 札幌編)Yuji Takayama
 
初めての Data API CMS どうでしょう - 仙台編 -
初めての Data API   CMS どうでしょう - 仙台編 -初めての Data API   CMS どうでしょう - 仙台編 -
初めての Data API CMS どうでしょう - 仙台編 -Yuji Takayama
 
MTAppjQueryでマニュアルいらずの管理画面を
MTAppjQueryでマニュアルいらずの管理画面をMTAppjQueryでマニュアルいらずの管理画面を
MTAppjQueryでマニュアルいらずの管理画面をbitpart
 
詳説 Movable type 7
詳説 Movable type 7詳説 Movable type 7
詳説 Movable type 7Yuji Takayama
 
20180709 pronet study
20180709 pronet study20180709 pronet study
20180709 pronet studySix Apart
 
Movable Type Meetup JSON - MTDDC Meetup TOKYO 2014
Movable Type Meetup JSON - MTDDC Meetup TOKYO 2014Movable Type Meetup JSON - MTDDC Meetup TOKYO 2014
Movable Type Meetup JSON - MTDDC Meetup TOKYO 2014bitpart
 
WebIDLを見てみる
WebIDLを見てみるWebIDLを見てみる
WebIDLを見てみるtakenspc
 
20130611 movable type nagoya seminar
20130611 movable type nagoya seminar20130611 movable type nagoya seminar
20130611 movable type nagoya seminarSix Apart
 
Movable Type 7 のすべて
Movable Type 7 のすべてMovable Type 7 のすべて
Movable Type 7 のすべてYuji Takayama
 
20140416 Movable Type Seminar
20140416 Movable Type Seminar20140416 Movable Type Seminar
20140416 Movable Type SeminarSix Apart
 
20140120 Movable Type Seminar
20140120 Movable Type Seminar20140120 Movable Type Seminar
20140120 Movable Type SeminarSix Apart
 
CMSとして選択肢のひとつ「Movable Type」をおすすめする理由
CMSとして選択肢のひとつ「Movable Type」をおすすめする理由CMSとして選択肢のひとつ「Movable Type」をおすすめする理由
CMSとして選択肢のひとつ「Movable Type」をおすすめする理由Masashi Hisatsugu
 
20130626 movable type seminar
20130626 movable type seminar20130626 movable type seminar
20130626 movable type seminarSix Apart
 
HTML5でオフラインWebアプリケーションを作ろう
HTML5でオフラインWebアプリケーションを作ろうHTML5でオフラインWebアプリケーションを作ろう
HTML5でオフラインWebアプリケーションを作ろうyoshikawa_t
 
20130911 Movable Type Seminar
20130911 Movable Type Seminar20130911 Movable Type Seminar
20130911 Movable Type SeminarSix Apart
 
MTDDC Meetup HOKKAIDO 2013 KEYNOTE - Movable Type 6
MTDDC Meetup HOKKAIDO 2013 KEYNOTE - Movable Type 6MTDDC Meetup HOKKAIDO 2013 KEYNOTE - Movable Type 6
MTDDC Meetup HOKKAIDO 2013 KEYNOTE - Movable Type 6Daiji Hirata
 
20130909 movable type_seminar
20130909 movable type_seminar20130909 movable type_seminar
20130909 movable type_seminarSix Apart
 
20160927 okubo mt_cloud_handson
20160927 okubo mt_cloud_handson20160927 okubo mt_cloud_handson
20160927 okubo mt_cloud_handsonSix Apart
 

What's hot (20)

Movable Type as a Playground
Movable Type as a PlaygroundMovable Type as a Playground
Movable Type as a Playground
 
Data API ことはじめ
Data API ことはじめData API ことはじめ
Data API ことはじめ
 
Data API + AWS = (CMS どうでしょう 札幌編)
Data API + AWS =  (CMS どうでしょう 札幌編)Data API + AWS =  (CMS どうでしょう 札幌編)
Data API + AWS = (CMS どうでしょう 札幌編)
 
初めての Data API CMS どうでしょう - 仙台編 -
初めての Data API   CMS どうでしょう - 仙台編 -初めての Data API   CMS どうでしょう - 仙台編 -
初めての Data API CMS どうでしょう - 仙台編 -
 
MTAppjQueryでマニュアルいらずの管理画面を
MTAppjQueryでマニュアルいらずの管理画面をMTAppjQueryでマニュアルいらずの管理画面を
MTAppjQueryでマニュアルいらずの管理画面を
 
詳説 Movable type 7
詳説 Movable type 7詳説 Movable type 7
詳説 Movable type 7
 
20180709 pronet study
20180709 pronet study20180709 pronet study
20180709 pronet study
 
Movable Type Meetup JSON - MTDDC Meetup TOKYO 2014
Movable Type Meetup JSON - MTDDC Meetup TOKYO 2014Movable Type Meetup JSON - MTDDC Meetup TOKYO 2014
Movable Type Meetup JSON - MTDDC Meetup TOKYO 2014
 
WebIDLを見てみる
WebIDLを見てみるWebIDLを見てみる
WebIDLを見てみる
 
20130611 movable type nagoya seminar
20130611 movable type nagoya seminar20130611 movable type nagoya seminar
20130611 movable type nagoya seminar
 
Movable Type 7 のすべて
Movable Type 7 のすべてMovable Type 7 のすべて
Movable Type 7 のすべて
 
20140416 Movable Type Seminar
20140416 Movable Type Seminar20140416 Movable Type Seminar
20140416 Movable Type Seminar
 
20140120 Movable Type Seminar
20140120 Movable Type Seminar20140120 Movable Type Seminar
20140120 Movable Type Seminar
 
CMSとして選択肢のひとつ「Movable Type」をおすすめする理由
CMSとして選択肢のひとつ「Movable Type」をおすすめする理由CMSとして選択肢のひとつ「Movable Type」をおすすめする理由
CMSとして選択肢のひとつ「Movable Type」をおすすめする理由
 
20130626 movable type seminar
20130626 movable type seminar20130626 movable type seminar
20130626 movable type seminar
 
HTML5でオフラインWebアプリケーションを作ろう
HTML5でオフラインWebアプリケーションを作ろうHTML5でオフラインWebアプリケーションを作ろう
HTML5でオフラインWebアプリケーションを作ろう
 
20130911 Movable Type Seminar
20130911 Movable Type Seminar20130911 Movable Type Seminar
20130911 Movable Type Seminar
 
MTDDC Meetup HOKKAIDO 2013 KEYNOTE - Movable Type 6
MTDDC Meetup HOKKAIDO 2013 KEYNOTE - Movable Type 6MTDDC Meetup HOKKAIDO 2013 KEYNOTE - Movable Type 6
MTDDC Meetup HOKKAIDO 2013 KEYNOTE - Movable Type 6
 
20130909 movable type_seminar
20130909 movable type_seminar20130909 movable type_seminar
20130909 movable type_seminar
 
20160927 okubo mt_cloud_handson
20160927 okubo mt_cloud_handson20160927 okubo mt_cloud_handson
20160927 okubo mt_cloud_handson
 

Viewers also liked

The end of polling : why and how to transform a REST API into a Data Streamin...
The end of polling : why and how to transform a REST API into a Data Streamin...The end of polling : why and how to transform a REST API into a Data Streamin...
The end of polling : why and how to transform a REST API into a Data Streamin...Audrey Neveu
 
Introduction to Streaming Analytics
Introduction to Streaming AnalyticsIntroduction to Streaming Analytics
Introduction to Streaming AnalyticsGuido Schmutz
 
Data Streaming Technology Overview
Data Streaming Technology OverviewData Streaming Technology Overview
Data Streaming Technology OverviewDan Lynn
 
GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)
GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)
GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)Apache Apex
 
Developing Real-Time Data Pipelines with Apache Kafka
Developing Real-Time Data Pipelines with Apache KafkaDeveloping Real-Time Data Pipelines with Apache Kafka
Developing Real-Time Data Pipelines with Apache KafkaJoe Stein
 

Viewers also liked (6)

The end of polling : why and how to transform a REST API into a Data Streamin...
The end of polling : why and how to transform a REST API into a Data Streamin...The end of polling : why and how to transform a REST API into a Data Streamin...
The end of polling : why and how to transform a REST API into a Data Streamin...
 
Open source data ingestion
Open source data ingestionOpen source data ingestion
Open source data ingestion
 
Introduction to Streaming Analytics
Introduction to Streaming AnalyticsIntroduction to Streaming Analytics
Introduction to Streaming Analytics
 
Data Streaming Technology Overview
Data Streaming Technology OverviewData Streaming Technology Overview
Data Streaming Technology Overview
 
GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)
GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)
GE IOT Predix Time Series & Data Ingestion Service using Apache Apex (Hadoop)
 
Developing Real-Time Data Pipelines with Apache Kafka
Developing Real-Time Data Pipelines with Apache KafkaDeveloping Real-Time Data Pipelines with Apache Kafka
Developing Real-Time Data Pipelines with Apache Kafka
 

Similar to Data API 2.0

jQuery と MVC で実践する標準志向 Web 開発
jQuery と MVC で実践する標準志向 Web 開発jQuery と MVC で実践する標準志向 Web 開発
jQuery と MVC で実践する標準志向 Web 開発Akira Inoue
 
Concentrated HTML5 & Attractive HTML5
Concentrated HTML5 & Attractive HTML5Concentrated HTML5 & Attractive HTML5
Concentrated HTML5 & Attractive HTML5Sho Ito
 
Web アプリケーションにおけるクライアントサイドのデータハンドリングと可視化の実現
Web アプリケーションにおけるクライアントサイドのデータハンドリングと可視化の実現Web アプリケーションにおけるクライアントサイドのデータハンドリングと可視化の実現
Web アプリケーションにおけるクライアントサイドのデータハンドリングと可視化の実現インフラジスティックス・ジャパン株式会社
 
20170902 kixs azure&azure stack
20170902 kixs azure&azure stack20170902 kixs azure&azure stack
20170902 kixs azure&azure stackOsamu Takazoe
 
SilverlightとSharePoint2010の紹介
SilverlightとSharePoint2010の紹介SilverlightとSharePoint2010の紹介
SilverlightとSharePoint2010の紹介Tadahiro Higuchi
 
ADO.NETでつながるクラウドデータ連携
ADO.NETでつながるクラウドデータ連携ADO.NETでつながるクラウドデータ連携
ADO.NETでつながるクラウドデータ連携CData Software Japan
 
Vsug20100522
Vsug20100522Vsug20100522
Vsug20100522hr_sao
 
サーバー管理よ、サヨウナラ。サーバーレス アーキテクチャの意義と実践
サーバー管理よ、サヨウナラ。サーバーレス アーキテクチャの意義と実践サーバー管理よ、サヨウナラ。サーバーレス アーキテクチャの意義と実践
サーバー管理よ、サヨウナラ。サーバーレス アーキテクチャの意義と実践真吾 吉田
 
マイクロソフトWeb開発の今と今後
マイクロソフトWeb開発の今と今後マイクロソフトWeb開発の今と今後
マイクロソフトWeb開発の今と今後Akira Inoue
 
SharePoint Business Connectivity Services を使用した外部アプリケーション連携
SharePoint Business Connectivity Services を使用した外部アプリケーション連携SharePoint Business Connectivity Services を使用した外部アプリケーション連携
SharePoint Business Connectivity Services を使用した外部アプリケーション連携Atsuo Yamasaki
 
[AC11] サーバー管理よ、サヨウナラ。サーバーレスアーキテクチャの意義と実践
[AC11] サーバー管理よ、サヨウナラ。サーバーレスアーキテクチャの意義と実践[AC11] サーバー管理よ、サヨウナラ。サーバーレスアーキテクチャの意義と実践
[AC11] サーバー管理よ、サヨウナラ。サーバーレスアーキテクチャの意義と実践de:code 2017
 
未来のwebに欠かせないREST APIをApache Solr + Drupal8で実装しよう@PHPカンファレンス2016 東京
未来のwebに欠かせないREST APIをApache Solr + Drupal8で実装しよう@PHPカンファレンス2016 東京未来のwebに欠かせないREST APIをApache Solr + Drupal8で実装しよう@PHPカンファレンス2016 東京
未来のwebに欠かせないREST APIをApache Solr + Drupal8で実装しよう@PHPカンファレンス2016 東京Masayuki Abe
 
View and Data API のご紹介 @ WebGL Meetup #2
View and Data API のご紹介 @ WebGL Meetup #2View and Data API のご紹介 @ WebGL Meetup #2
View and Data API のご紹介 @ WebGL Meetup #2Isezaki Toshiaki
 
Web API を気軽に使える ツールやサービスのご紹介
Web API を気軽に使えるツールやサービスのご紹介Web API を気軽に使えるツールやサービスのご紹介
Web API を気軽に使える ツールやサービスのご紹介CData Software Japan
 
Kilimanjaro Event
Kilimanjaro EventKilimanjaro Event
Kilimanjaro Eventdynamis
 
MetaTweetの現状と展望 v0
MetaTweetの現状と展望 v0MetaTweetの現状と展望 v0
MetaTweetの現状と展望 v0Takeshi Kiriya
 

Similar to Data API 2.0 (20)

jQuery と MVC で実践する標準志向 Web 開発
jQuery と MVC で実践する標準志向 Web 開発jQuery と MVC で実践する標準志向 Web 開発
jQuery と MVC で実践する標準志向 Web 開発
 
Concentrated HTML5 & Attractive HTML5
Concentrated HTML5 & Attractive HTML5Concentrated HTML5 & Attractive HTML5
Concentrated HTML5 & Attractive HTML5
 
Web アプリケーションにおけるクライアントサイドのデータハンドリングと可視化の実現
Web アプリケーションにおけるクライアントサイドのデータハンドリングと可視化の実現Web アプリケーションにおけるクライアントサイドのデータハンドリングと可視化の実現
Web アプリケーションにおけるクライアントサイドのデータハンドリングと可視化の実現
 
20170902 kixs azure&azure stack
20170902 kixs azure&azure stack20170902 kixs azure&azure stack
20170902 kixs azure&azure stack
 
SilverlightとSharePoint2010の紹介
SilverlightとSharePoint2010の紹介SilverlightとSharePoint2010の紹介
SilverlightとSharePoint2010の紹介
 
ADO.NETでつながるクラウドデータ連携
ADO.NETでつながるクラウドデータ連携ADO.NETでつながるクラウドデータ連携
ADO.NETでつながるクラウドデータ連携
 
Vsug20100522
Vsug20100522Vsug20100522
Vsug20100522
 
APIMeetup 20170329_ichimura
APIMeetup 20170329_ichimuraAPIMeetup 20170329_ichimura
APIMeetup 20170329_ichimura
 
サーバー管理よ、サヨウナラ。サーバーレス アーキテクチャの意義と実践
サーバー管理よ、サヨウナラ。サーバーレス アーキテクチャの意義と実践サーバー管理よ、サヨウナラ。サーバーレス アーキテクチャの意義と実践
サーバー管理よ、サヨウナラ。サーバーレス アーキテクチャの意義と実践
 
マイクロソフトWeb開発の今と今後
マイクロソフトWeb開発の今と今後マイクロソフトWeb開発の今と今後
マイクロソフトWeb開発の今と今後
 
SharePoint Business Connectivity Services を使用した外部アプリケーション連携
SharePoint Business Connectivity Services を使用した外部アプリケーション連携SharePoint Business Connectivity Services を使用した外部アプリケーション連携
SharePoint Business Connectivity Services を使用した外部アプリケーション連携
 
Yahoo pipes
Yahoo pipesYahoo pipes
Yahoo pipes
 
Web Intents入門
Web Intents入門Web Intents入門
Web Intents入門
 
[AC11] サーバー管理よ、サヨウナラ。サーバーレスアーキテクチャの意義と実践
[AC11] サーバー管理よ、サヨウナラ。サーバーレスアーキテクチャの意義と実践[AC11] サーバー管理よ、サヨウナラ。サーバーレスアーキテクチャの意義と実践
[AC11] サーバー管理よ、サヨウナラ。サーバーレスアーキテクチャの意義と実践
 
未来のwebに欠かせないREST APIをApache Solr + Drupal8で実装しよう@PHPカンファレンス2016 東京
未来のwebに欠かせないREST APIをApache Solr + Drupal8で実装しよう@PHPカンファレンス2016 東京未来のwebに欠かせないREST APIをApache Solr + Drupal8で実装しよう@PHPカンファレンス2016 東京
未来のwebに欠かせないREST APIをApache Solr + Drupal8で実装しよう@PHPカンファレンス2016 東京
 
View and Data API のご紹介 @ WebGL Meetup #2
View and Data API のご紹介 @ WebGL Meetup #2View and Data API のご紹介 @ WebGL Meetup #2
View and Data API のご紹介 @ WebGL Meetup #2
 
Webに今求められているレベル: HTML5 コントロールを利用した開発
Webに今求められているレベル: HTML5 コントロールを利用した開発Webに今求められているレベル: HTML5 コントロールを利用した開発
Webに今求められているレベル: HTML5 コントロールを利用した開発
 
Web API を気軽に使える ツールやサービスのご紹介
Web API を気軽に使えるツールやサービスのご紹介Web API を気軽に使えるツールやサービスのご紹介
Web API を気軽に使える ツールやサービスのご紹介
 
Kilimanjaro Event
Kilimanjaro EventKilimanjaro Event
Kilimanjaro Event
 
MetaTweetの現状と展望 v0
MetaTweetの現状と展望 v0MetaTweetの現状と展望 v0
MetaTweetの現状と展望 v0
 

More from Yuji Takayama

Movable Type for AWS Hands-on
Movable Type for AWS Hands-onMovable Type for AWS Hands-on
Movable Type for AWS Hands-onYuji Takayama
 
Movable Type for AWS - JAWS-UG 沖縄 CMS祭り!
Movable Type for AWS - JAWS-UG 沖縄 CMS祭り!Movable Type for AWS - JAWS-UG 沖縄 CMS祭り!
Movable Type for AWS - JAWS-UG 沖縄 CMS祭り!Yuji Takayama
 
MT東京03 - Movable Type for AWS
MT東京03 - Movable Type for AWSMT東京03 - Movable Type for AWS
MT東京03 - Movable Type for AWSYuji Takayama
 
Mtとクラウドと私
Mtとクラウドと私Mtとクラウドと私
Mtとクラウドと私Yuji Takayama
 
Movable Type 6 overview spec3
Movable Type 6 overview spec3Movable Type 6 overview spec3
Movable Type 6 overview spec3Yuji Takayama
 
Movable Type 6 Overview - New York Perl Mongers Tech Talk
Movable Type 6 Overview - New York Perl Mongers Tech TalkMovable Type 6 Overview - New York Perl Mongers Tech Talk
Movable Type 6 Overview - New York Perl Mongers Tech TalkYuji Takayama
 
Movable Type 6 Overview SPEC2
Movable Type 6 Overview SPEC2Movable Type 6 Overview SPEC2
Movable Type 6 Overview SPEC2Yuji Takayama
 
Mtddc2013: Movable Type 6 Overview
Mtddc2013: Movable Type 6 OverviewMtddc2013: Movable Type 6 Overview
Mtddc2013: Movable Type 6 OverviewYuji Takayama
 
Mtddc kyusyu-lightningtalks
Mtddc kyusyu-lightningtalksMtddc kyusyu-lightningtalks
Mtddc kyusyu-lightningtalksYuji Takayama
 
Movable Type 5.2 Overview at MTDDC 2012
Movable Type 5.2 Overview at MTDDC 2012Movable Type 5.2 Overview at MTDDC 2012
Movable Type 5.2 Overview at MTDDC 2012Yuji Takayama
 
Phpで作るmovable typeプラグイン
Phpで作るmovable typeプラグインPhpで作るmovable typeプラグイン
Phpで作るmovable typeプラグインYuji Takayama
 
ダイナミック:Plugin
ダイナミック:Pluginダイナミック:Plugin
ダイナミック:PluginYuji Takayama
 

More from Yuji Takayama (13)

Movable Type for AWS Hands-on
Movable Type for AWS Hands-onMovable Type for AWS Hands-on
Movable Type for AWS Hands-on
 
Movable Type for AWS - JAWS-UG 沖縄 CMS祭り!
Movable Type for AWS - JAWS-UG 沖縄 CMS祭り!Movable Type for AWS - JAWS-UG 沖縄 CMS祭り!
Movable Type for AWS - JAWS-UG 沖縄 CMS祭り!
 
MT東京03 - Movable Type for AWS
MT東京03 - Movable Type for AWSMT東京03 - Movable Type for AWS
MT東京03 - Movable Type for AWS
 
Mtとクラウドと私
Mtとクラウドと私Mtとクラウドと私
Mtとクラウドと私
 
Movable Type 6 overview spec3
Movable Type 6 overview spec3Movable Type 6 overview spec3
Movable Type 6 overview spec3
 
Movable Type 6 Overview - New York Perl Mongers Tech Talk
Movable Type 6 Overview - New York Perl Mongers Tech TalkMovable Type 6 Overview - New York Perl Mongers Tech Talk
Movable Type 6 Overview - New York Perl Mongers Tech Talk
 
Movable Type 6 Overview SPEC2
Movable Type 6 Overview SPEC2Movable Type 6 Overview SPEC2
Movable Type 6 Overview SPEC2
 
Mtddc2013: Movable Type 6 Overview
Mtddc2013: Movable Type 6 OverviewMtddc2013: Movable Type 6 Overview
Mtddc2013: Movable Type 6 Overview
 
Mtddc kyusyu-lightningtalks
Mtddc kyusyu-lightningtalksMtddc kyusyu-lightningtalks
Mtddc kyusyu-lightningtalks
 
Movable Type 5.2 Overview at MTDDC 2012
Movable Type 5.2 Overview at MTDDC 2012Movable Type 5.2 Overview at MTDDC 2012
Movable Type 5.2 Overview at MTDDC 2012
 
Phpで作るmovable typeプラグイン
Phpで作るmovable typeプラグインPhpで作るmovable typeプラグイン
Phpで作るmovable typeプラグイン
 
ダイナミック:Plugin
ダイナミック:Pluginダイナミック:Plugin
ダイナミック:Plugin
 
20070824 MT-DEVCON
20070824 MT-DEVCON20070824 MT-DEVCON
20070824 MT-DEVCON
 

Recently uploaded

デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)UEHARA, Tetsutaro
 
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A surveyToru Tamaki
 
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...博三 太田
 
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案sugiuralab
 
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Yuma Ohgami
 
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfAWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfFumieNakayama
 
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)Hiroki Ichikura
 
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdfTSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdftaisei2219
 
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する       2024/04/19 の勉強会で発表されたものですSOPを理解する       2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものですiPride Co., Ltd.
 
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...Toru Tamaki
 
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNetToru Tamaki
 
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfクラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfFumieNakayama
 

Recently uploaded (12)

デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
 
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
 
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
 
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
 
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
 
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfAWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
 
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
 
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdfTSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
 
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する       2024/04/19 の勉強会で発表されたものですSOPを理解する       2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
 
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
 
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
 
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfクラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
 

Data API 2.0

  • 1. Data API 2.0 MTDDC Meetup Tokyo 2014 2014.11.29 (Sat) Yuji Takayama@Six Apart
  • 2. My Social icon YUJI TAKAYAMA Six Apart, Ltd. Senior Product Manager Movable Type Lead Engineer Twitter: @yuji Facebook: Yuji Takayama Github: yuji Mail: ytakayama@sixapart.com
  • 3. Today’s Agenda Movable Type Data API Overview Movable Type Data API とはなにか? Why Movable Type offers API? なぜ、Movable Type は API を提供しているのか? Introduce Data API v2.0 Movable Type Data API v2.0 のご紹介。v1.0 との違いについても
  • 5. Movable Type Data API REST/JSON API for every websites and applications Released with Movable Type 6.0 on Oct 17, 2013
  • 6. Data API Features REST / JSON API 特殊な処理を必要としない URL ベースの呼び出しと、結果は扱いやすい JSON 形式をサポート MT Authentication and Role based permission Movable Type が提供するロールベースのユーザー管理機能を利用した認証機能を提供 Pluggable / Extensible Movable Type らしく拡張性も重視。プラグイン (Perl) によるエンドポイントの拡張、 コールバックを利用したフィルター処理、JSON 以外の出力形式を追加することも JavaScript library available JavaScript 用の開発ライブラリを標準提供。ブラウザの差異も吸収
  • 7. Data API Show Case 1 Six Apart のごはんレシピ • 新着一覧に表示するレシピを Data API で無限スクロール • ページ遷移が必要ない • 【利用者目線】気になるレシピを探しやすく • 【制作者目線】ページ分割のための再構築が不要 = 負荷が低減 http://makanai.sixapart.jp/
  • 8. Data API Show Case 2 ワンダードライビング • Google Analytics と連携し、アクセス数の多い記事をランキング表示 • ほぼリアルタイムにページを更新 • 独自開発したサムネイル作成用エンドポイント http://wonderdriving.com/
  • 9. Data API Show Case 3 Loupe • サイトのアクセス数を取得してグラフ表示 • 撮影した写真をすばやくアップロード • 記事へのコメントにすばやく返信 • デバイスに最適化されたページ • 必要なデータだけを送受信することで通信コストの低減
  • 10. Data API Show Case 4 Movable Type Writer (仮) • Movable Type の管理画面を使わずに記事を投稿 • Movable Type の管理画面を改造せずに、ニーズに併せる • Google Chrome App • おもいついた時にパッと書ける • コンテンツに合わせた、適切なラベルと適切な配置で独自アプリに
  • 11. Why Movable Type offers API?
  • 12. Build web pages Responsive Web Design Templates <html> Content
  • 13. The web of Things “The Web of Things (WoT) is a set of software architectural styles and programming patterns that allow real-world objects to be part of the World Wide Web. Similarly to what the Web (Application Layer) is to the Internet (Network Layer), the Web of Things provides an Application Layer that simplifies the creation of Internet of Things applications. Rather than re-inventing completely new standards, the Web of Things reuses existing and well-known Web standards used in the programmable Web (e.g, REST, HTTP, JSON), semantic Web (e.g., JSON-LD, Microdata, etc.), the real-time Web (e.g, Websockets) and the social Web (e.g., oauth or social networks).” — Wikipedia http://en.wikipedia.org/wiki/Web_of_Things —
  • 14. Build web pages Web Browser Digital Car fridge Signage Mobile Applications Templates TV Watch Data API <html> Content Data API Any Devices
  • 15. Why Movable Type offers API? Because… The Web of Things PCやスマホだけにとどまらず、広がっていくウェブの世界 Mobile First, Content First モバイル端末での閲覧に最適化。コンテンツを配信することで通信を最適化 Dynamic Site リッチな表現は必要に応じてフロント側で実現
  • 17. Data API Endpoints for v1 CREATE READ UPDATE DELETE LIST Entries ◯ ◯ ◯ ◯ ◯ Comments ◯ ◯ ◯ ◯ ◯ Categories ◯ △ Blog/Websites ◯ ◯ Trackbacks ◯ ◯ ◯ ◯ Users ◯ ◯ Site Statistics ◯ Assets ◯ (Upload)
  • 18. Data API Endpoints for v2 CREATE READ UPDATE DELETE LIST Entries ◯ ◯ ◯ ◯ ◯ Comments ◯ ◯ ◯ ◯ ◯ Categories  ◯    Blog/Websites  ◯   ◯ Trackbacks ◯ ◯ ◯ ◯ Users  ◯ ◯   Available Endpoints are Site Statistics ◯ Assets ◯ (Upload)     350% up from v1! Custom Fields      Logs      Groups / Group Members      Pages      Roles      Folders      Templates / Widgets      Tags      Themes  Permissions  Search 
  • 19. Data API v2.0 Features Create/read/update/delete every objects ほぼすべてのオブジェクトについて、CRUDのエンドポイントをサポート Assign categories to an entry, save categories order 記事へのカテゴリの割り当てはもとより、カテゴリの順序を保存することも Restrict Data API access for each site 各サイト単位で Data API のアクセスを禁止することが可能に Search entries across the each site サイトを横断して記事の検索が可能に
  • 20. Data API v2.0 Features Make a thumbnail for an asset 任意のサイズのサムネイル画像を作成可能に Make a log from a front side フロントエンドで発生したイベントもログに書き込み可能に Build index/archive template インデックス・テンプレート、アーカイブテンプレートの再構築を実行可能に Run backup/restore バックアップの生成はもとより、バックアップファイルを指定した復元も
  • 21. Data API v2.0 Features and more……
  • 22. Online document available (now writing…) http://docs.movabletypedataapi.apiary.io/
  • 23. Data API 2.0 - Demo
  • 24. Mobile Application x Data API x Website Mobile Applications Available at Data API v1.0 Available at Data API v2.0 Web Browser Upload via Data API Make thumbnail via Rebuild main index via Data API Data API
  • 25. <body> <div> <h1>Login</h1> <button id="login" name="login" value="login">Login</button> </div> <div> <h1>Upload</h1> <form id="form"> <input type="hidden" name="site_id" value="1"> <input type="hidden" name="autoRenameIfExists" value="1"> <div>Path: <input type="text" name="path" id="path" value="/"></div> <div>File: <input type="file" name="file" id="upload_file"></div> <input type="submit"> </form> <div id="result"></div> </div> <script> …. </script> </body>
  • 26. Show Login Form $('#login').click( function() { location.href = “http://path/to/mt-data-api.cgi/v2/authorization?redirectUrl=“ + encodeURIComponent( window.location ) + "&clientId=TestApp"; });
  • 27. Upload File var fd = new FormData($('#form').get(0)); $.ajax({ url: “http://path/to/mt-data-api.cgi/v2/assets/upload", type: "POST", data: fd, processData: false, contentType: false, dataType: 'json', headers: { 'X-MT-Authorization': token } })
  • 28. Get thumbnail .done(function( data ) { var url = “http://path/to/mt-data-api.cgi/v2/sites/1/assets/" + data.id + "/thumbnail?width=200&square=1" $.ajax({ url: url, type: "GET", dataType: 'json' }) .done(function( data ) { $('#result').append('<img src="' + data.url + '" width="200">'); }); });
  • 29. Rebuild main index file var url = “http://path/to/mt-data-api.cgi/v2/sites/1/templates/35/publish”; $.ajax({ url: url, type: "POST", headers: { 'X-MT-Authorization': t } }) .done(function( data ) { alert('Done!'); }); Template ID of Main Index Authentication required
  • 30. Data API 2.0 will be available in Movable Type 6.1 (early 2015)
  • 33. CMS として長い歴史を持つ Movable Type と WordPress について、 今どきの開発トレンドと運用についてのイベントを札幌で開催します! ※真面目な IT 勉強会です。 ※沖縄で遺恨は何一つありませんw
  • 34. Movable Type を CMS として使用してウェブサイトを構築するときに、 「コレは入れるよね!」というお気に入りのプラグインを投票していただき、 2014年の「Movable Type プラデミー賞」を決定します。
  • 35. Thank you for listening Have fun with Movable Type and Data API !!!