Skip to content
shenfeng edited this page Apr 19, 2013 · 11 revisions

For all request except the login, add the access_token to the request header

People

POST /api/v1/login

  • email: user email,
  • password: user password

or

  • provider: like weibo, qq
  • id_in_provider: id
  • name: name in provider

=>

   id: 1,
   access_token: "sdfdsfsdfsdfsdf" // a random token 
}

Get user info /api/v1/users/:id

=>

{
    email: "[email protected]",
    qq: 386297760,
    interested_fields: "html5, bakcend, bigdata",
    work: "None",
    photo: "/user/pic/1212.jpg",
    follow: false
}

Get friends GET /api/v1/friends

=>

[{
    email: "[email protected]",
    qq: 386297760,
    interested_fields: "html5, bakcend, bigdata",
    work: "None",
    photo: "/user/pic/1212.jpg",
    follow: false
},
{
    email: "[email protected]",
    qq: 386297760,
    interested_fields: "html5, bakcend, bigdata",
    work: "None",
    photo: "/user/pic/1212.jpg",
    follow: false
},
]

Follow somebody POST /api/v1/follow

  • user_id: the user id to follow

Get events GET /api/v1/events/

  • start : start time, in milliseconds, default to 1 week ago.
  • end: end time, in milliseconds, default to now.
  • city: like beijing, Null means all.

[{ title: "北京GDG之编程语言沙龙", start_time: "2013-05-05(周日),13:30" end_time: "2013-05-05(周日),17:00" location: "翠宫饭店,中国北京市海淀区知春路76号。10号线知春里D口,东行200米", detail: " 如果你只会 Java、C 等一两种大众语言,那么你真的需要多了解一下外面的世界。编程语言就像酒和咖啡,每一种品起来味道都不同。不仅仅是味道,更是一种底蕴。而且是和你朝夕相处的伴侣。本次活动将由国内三位语言专家为您介绍三种极具特色的编程语言——Go 、Dart 和 Erlang 。

就像婴儿学说话一样,编程语言是每个程序员最先需要掌握的。然后你才能用它表达你的意图,完成工作任务。编程语言并非只给机器看的,实际上绝大部分时间是给人看的。人们常说重要的是思想,但思想需要通过语言才能表达,反过来语言又影响我们的思维。因此,编程语言不同于普通的开发工具。语言也不仅仅是语法本身,还包含编程范式、习惯用法、库、框架、工具等等。在软件工程中,编程语言算是影响最为深远的一个要素。

优秀的编程语言当然不限于这三种,但由于一次活动的时间有限,所以这次只包含了 Go、Dart 和 Erlang 。本次活动由北京GDG (Google Developer Groups) 社区组织,这里是纯粹的技术交流,欢迎你的参与。

现场会有赠书活动。" } ]

My events /api/v1/my-events

Clone this wiki locally