moztw / www.moztw.org

Repository of moztw.org
https://moztw.org/
Mozilla Public License 2.0
55 stars 59 forks source link

使用 Mozillians API 把 #moztw 的成員拉回來製作成社群成員頁面 #27

Open irvin opened 10 years ago

irvin commented 10 years ago

https://mozillians.org/zh-TW/search/?q=%23moztw http://mozillians.readthedocs.org/en/latest/api-groups.html#endpoint

應該可以透過 Mozillians API 去拉回 moztw group 的成員基本資料,並且組成社群成員頁面。

更新:目前等待 Mozillians.org 的 API 狀況 https://bugzilla.mozilla.org/show_bug.cgi?id=1031660

bobchao commented 10 years ago

@kidwm 有興趣做這個嗎?之前有跟你聊過爬網頁的事情,這或許還會更容易

kidwm commented 10 years ago

好啊,API Key 好像要去開 bugzilla 要?

bobchao commented 10 years ago

就找看看方法唄? <- 完全沒要過 XD

Po-chiang Chao Mozillian, Creative Commoner, UX Ninja

On 2014年5月24日Saturday at 15:53, Chen-Heng Chang wrote:

好啊,API Key 好像要去開 bugzilla 要?

— Reply to this email directly or view it on GitHub (https://github.com/moztw/www.moztw.org/issues/27#issuecomment-44080598).

bobchao commented 9 years ago

assign to @kidwm

irvin commented 9 years ago

Bug 開過了,沒回應 https://bugzilla.mozilla.org/show_bug.cgi?id=1031660

Po-chiang Chao notifications@github.com 於 2014年9月1日星期一寫道:

assign to @kidwm https://github.com/kidwm

— Reply to this email directly or view it on GitHub https://github.com/moztw/www.moztw.org/issues/27#issuecomment-53993797.

@ irvinfly: community liaison moztw.org Mozilla Taiwan community

bobchao commented 9 years ago

https://bugzilla.mozilla.org/show_bug.cgi?id=943480#c1

"Right now our API policy only allows Mozilla Corporation sites to access personal information like name, location, email ID, and Twitter / Facebook accounts. We are starting work to change the API policy so that developers like yourself can have greater access to the API."

不知道要 change 幾百年。

我沒有 canconfirm, @irvin 你或許會想要把 Product 改去 API Request ?

irvin commented 9 years ago

改了,看你能不能去戳戳誰來回一下

bobchao commented 9 years ago

已刺,看看狀況

irvin commented 9 years ago

API Key 我取得了,目前只能這樣用:

--- Comment #5 from William Reynolds [:williamr] williamr@mozilla.com 2014-10-30 14:52:13 PDT --- Irvin, thanks! I have created your vouched API key and sent it to you by email. Once bug 1011220 is resolved, you will be able to access public profile information. At the moment, your API key can only be used to check if an email address belongs to a vouched Mozillian.

因此我在想是不是弄一個可以讓人自投羅網填入 email 的網頁,用 key 檢查是不是 vouched Mozillian,是的話就列入網頁的社群成員中。 不是的話就顯示:歡迎到在此參與 Mozilla 專案,完成貢獻後記得請人幫忙認證 如果是 Mozillian,沒有標示 MozTW,就顯示:歡迎加入 mozillian/moztw 群組

petercpg commented 9 years ago

API v2: https://mozillians.readthedocs.org/en/latest/api/apiv2/index.html

看起來 API 又跳了一版...

irvin commented 8 years ago

https://mozillians.org/api/v2/groups/10628/?api-key=a19e24dc1517651dfeb95608e0b4701e4a6dd9d7 < 新的 Mozillians API 取 group 用法

irvin commented 8 years ago

@kidwm 放了一年多了,快來做吧~

kidwm commented 8 years ago

放在 /about/ 那頁嗎?

irvin commented 8 years ago

先做在 /member 試試

alexsh commented 8 years ago

試API試得差不多了…以現在的API架構硬做ajax query的話,這個網頁的效能我預期會非常的差。 取得群組公開個資清單只拿得到每個使用者的帳號跟API link。 要詳細資料(最少需要名字/暱稱、大頭照、mozillians link),每個帳號都要跟API存取一次(有多少人就多少個請求,再乘上PV數…),似乎沒有一次request就拿回指定複數帳號之詳細資料的方法。

kidwm commented 8 years ago

如果他們沒有要繼續改進 API ,也只能這樣了。

mingtsay commented 8 years ago

如果利用 localStorage 來 cache 有比較好嗎?

Chen-Heng Chang notifications@github.com 於 2015年8月27日週四 11:28 寫道:

如果他們沒有要繼續改進 API ,也只能這樣了。

— Reply to this email directly or view it on GitHub https://github.com/moztw/www.moztw.org/issues/27#issuecomment-135276864.

Best regards, Ming Tsay.

小喵 / 蔡璨名 Contact: +886-910-203-014 Website: https://mt.rmstudio.tw RM Studio https://rmstudio.tw Founder MozTW (Mozilla 台灣社群) http://moztw.org 銘傳大學 http://www.mcu.edu.tw CSIE http://www.csie.mcu.edu.tw 主機負責人

irvin commented 8 years ago

這個頁面大多不是回頭客,所以沒啥差別