Tumblr APIを使ったphpでの投稿

| | Comments (0) | TrackBacks (0)

SEO用のバックリンクサイトを作るためにミニブログ系のサービスをいくつか見ていたが、Tumblrが一番良さそうだ。

・デザインの自由度が高い(自分でHTML,css自由に記入できる。wigetを使えるみたい?)また、多くのデザインが出回っている

・投稿のためのAPIが公開されていて仕様が非常に簡単である

 

APIの和訳はこちらのサイトがオススメです。

http://lostage.is-a-geek.org/api/tumblr/

 

 

phpで最低限以下のコードを書くととりあえず文字(HTML)での投稿が可能みたい。

 $tumblr_url = "http://www.tumblr.com/api/write";

  $req =& new HTTP_Request($tumblr_url);
  $req->setMethod(HTTP_REQUEST_METHOD_POST);

  $req->addPostData("email",$email);

  $req->addPostData("password",$pass);

  $req->addPostData("type","Regular");
  $req->addPostData("title",$title);

  $req->addPostData("body",$desc);

  $response = $req->sendRequest();

 

MTでXml-RPCで関数をゴリゴリ書いていたのと比べると非常に簡単ですね。

現在サイトを立ててページランクが得られるか実験をしています。バックリンクが得られる仕組みが必要かもね。Tumblrのまとめサイトってあるのかな?あったら面白そう。

 

しっかし、TumblrでLinkの投稿が存在している理由がよく解らない。

 

 

0 TrackBacks

Listed below are links to blogs that reference this entry: Tumblr APIを使ったphpでの投稿.

TrackBack URL for this entry: http://blog.tomoaking55.com/mt-tb.cgi/12

Leave a comment

About this Entry

This page contains a single entry by ohashi published on January 2, 2008 6:13 PM.

プレジデント お金の新常識60 was the previous entry in this blog.

セイラー教授の行動経済学入門 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.