Timelog API

資料

curl で Timelog API をコールしてみる例

XML で取得

$ curl -u username:password "http://api.timelog.jp/my_msg.asp?cnt=50&hc=1&fmt=xml&since=20200814"
<?xml version="1.0" encoding="UTF-8"?>
<memos>
 <title>TimeLog finearc</title>
 <link rel="alternate" type="text/html" href="http://timelog.jp"/>
 <modified>2020/08/15 6:30:44</modified>
 <author>
  <id>nilab</id>
  <name>nilab</name>
  <image>
   <normal>http://img.timelog.jp/imageuserface/nilab.jpg</normal>
   <thumb>http://img.timelog.jp/imageuserface/nilab_m.jpg</thumb>
   <small>http://img.timelog.jp/imageuserface/nilab_s.jpg</small>
  </image>
 </author>
 <entry>
  <id>ee040275f3a334325c5acfbb8b6ed1c382d2f6a592bab1</id>
  <dispflag>0</dispflag>
  <memo>ちゅーるちゅ&amp;#12316;るちゃおちゅ&amp;#12316;る&amp;#12316;(=゚ω゚)ノ </memo>
  <toid></toid>
  <toname></toname>
  <tododate></tododate>
  <replyid></replyid>
  <tag></tag>
  <author>
   <id>nilab</id>
   <name>nilab</name>
   <statflag>1</statflag>
   <image>
    <normal>http://img.timelog.jp/imageuserface/nilab.jpg</normal>
    <thumb>http://img.timelog.jp/imageuserface/nilab_m.jpg</thumb>
    <small>http://img.timelog.jp/imageuserface/nilab_s.jpg</small>
   </image>
  </author>
  <link rel="alternate" type="text/html" href="http://timelog.jp/msg/?ee040275f3a334325c5acfbb8b6ed1c382d2f6a592bab1"/>
  <modified>2020/08/14 21:17:46</modified>
  <star>1</star>
 </entry>
</memos>

JSON で取得

$ curl -u username:password "http://api.timelog.jp/my_msg.asp?cnt=50&hc=1&fmt=json&since=20200814"
{"timelog":[
{
"id":"nilab",
"dispflag":"0",
"statflag":"1",
"name":"nilab",
"msg":"ちゅーるちゅ&amp;#12316;るちゃおちゅ&amp;#12316;る&amp;#12316;(=゚ω゚)ノ ",
"toid":"",
"toname":"",
"tododate":"",
"msgid":"ee040275f3a334325c5acfbb8b6ed1c382d2f6a592bab1",
"replyid":"",
"url":"http://timelog.jp/msg/?ee040275f3a334325c5acfbb8b6ed1c382d2f6a592bab1",
"tag":"",
"date":"2020-08-14T21:17:46+09:00",
"star":"1",
"imagen":"http://img.timelog.jp/imageuserface/nilab.jpg",
"imagem":"http://img.timelog.jp/imageuserface/nilab_m.jpg",
"images":"http://img.timelog.jp/imageuserface/nilab_s.jpg"
}
]}