Skip to content

Instantly share code, notes, and snippets.

@bobwei
Created November 29, 2012 06:26
Show Gist options
  • Save bobwei/4167146 to your computer and use it in GitHub Desktop.
Save bobwei/4167146 to your computer and use it in GitHub Desktop.
Line Cafe Unofficial API

All Categories

GET http://api.cafe.naver.jp/categories

Popular Cafe

GET http://api.cafe.naver.jp/cafes/osusume?cursor=0&fetchSize=20&languages=Chinese_Traditional

Cafe Members

GET http://api.cafe.naver.jp/cafe/2135401210419741125/members?cursor=&fetchSize=50&sort=new

Cafe Manager

GET http://api.cafe.naver.jp/cafe/2135401210419741125/member/manager

Cafe Detail (postCount, commentCount, userCount)

GET http://api.cafe.naver.jp/cafe/2135401210419741125

User Detail

GET http://api.cafe.naver.jp/user/6hka7w3t2ooc2rnb9ziw

User Activity Cafe

GET http://api.cafe.naver.jp/user/6hka7w3t2ooc2rnb9ziw/activityCafes?cursor=0&fetchSize=100

User Search

GET http://api.cafe.naver.jp/search/user?cursor=0&fetchSize=20&q=a

Invite User to Cafe

POST http://api.cafe.naver.jp/invite?uaLanguage=English

login_required

input json encoded data

{                                                                                                                                 
    "cafe": {                                                                                                                     
        "id": "2135401210419741125"                                                                                               
    },                                                                                                                            
    "lineUsers": [],                                                                                                              
    "message": "Let's go to the cafe together!",                                                                                  
    "naverUsers": [                                                                                                               
        {                                                                                                                         
            "userHash": "6g33t1ornqyhvlyta0yi"                                                                                    
        }                                                                                                                         
    ]                                                                                                                             
}
import requests
def register(nickname, email, password, newsletterFlag='N', fromUrl='NJAppCafe://login'):
r = requests.post('https://ssl.naver.jp/apiJoin.nhn', data={
'nickname': nickname,
'email': email,
'password': password,
'newsletterFlag': newsletterFlag,
'fromUrl': fromUrl,
})
print r.content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment