Skip to content

Instantly share code, notes, and snippets.

@mntone
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mntone/63d913d0fd17df0069c1 to your computer and use it in GitHub Desktop.
Save mntone/63d913d0fd17df0069c1 to your computer and use it in GitHub Desktop.

GET universities

Returns the array of universities.

See Object: Universities, Object: University, and Object: UniversityName.

Resource URL

http://kyuko.catchball.co/api/1/universities.json

Resource Information

Response format
JSON
Require authentication?
Yes

Parameters

Field R/O Description
api_key required client identifier API key

Example Request

curl http://kyuko.catchball.co/api/1/universities.json?api_key=testing123

Example Result

{
    "items": [
        {
            "campuses": [
                {
                    "coordinates": {
                        "latitude": 35.669127, 
                        "longitude": 139.580771
                    }, 
                    "id": 1, 
                    "names": {
                        "en_us": "Sengawa", 
                        "local": "仙川", 
                        "locale": "ja-JP"
                    }, 
                    "screen_name": "shirayuri_sengawa"
                }
            ], 
            "has_cancel": true, 
            "has_extra": false, 
            "id": 0, 
            "names": {
                "en_us": "Shirayuri College", 
                "local": "白百合女子大学", 
                "locale": "ja-JP"
            }, 
            "screen_name": "shirayuri"
        }, 
        {
            "campuses": [
                {
                    "coordinates": {
                        "latitude": 35.656045, 
                        "longitude": 139.544066
                    }, 
                    "id": 2, 
                    "names": {
                        "en_us": "Chofu", 
                        "local": "調布", 
                        "locale": "ja-JP"
                    }, 
                    "screen_name": "uec_chofu"
                }
            ], 
            "has_cancel": true, 
            "has_extra": false, 
            "id": 6, 
            "names": {
                "en_us": "University of Electro-Communications", 
                "local": "電気通信大学", 
                "locale": "ja-JP"
            }, 
            "screen_name": "uec"
        }, 
        {
            "campuses": [
                {
                    "coordinates": {
                        "latitude": 35.640656, 
                        "longitude": 139.632012
                    }, 
                    "id": 3, 
                    "names": {
                        "en_us": "Setagaya", 
                        "local": "世田谷", 
                        "locale": "ja-JP"
                    }, 
                    "screen_name": "nodai_setagaya"
                }, 
                {
                    "coordinates": {
                        "latitude": 35.431911, 
                        "longitude": 139.346761
                    }, 
                    "id": 4, 
                    "names": {
                        "en_us": "Atsugi", 
                        "local": "厚木", 
                        "locale": "ja-JP"
                    }, 
                    "screen_name": "nodai_atsugi"
                }, 
                {
                    "coordinates": {
                        "latitude": 43.967673, 
                        "longitude": 144.232864
                    }, 
                    "id": 5, 
                    "names": {
                        "en_us": "Okhotsk", 
                        "local": "オホーツク", 
                        "locale": "ja-JP"
                    }, 
                    "screen_name": "nodai_okhotsk"
                }
            ], 
            "has_cancel": true, 
            "has_extra": false, 
            "id": 7, 
            "names": {
                "en_us": "Tokyo University of Agriculture", 
                "local": "東京農業大学", 
                "locale": "ja-JP"
            }, 
            "screen_name": "nodai"
        }
    ], 
    "last_update": "2014-12-27T03:37:00.0000000+00:00", 
    "message": null
}

GET kyuko

Returns cancellations information.

See Object: Classes, Object: Class, and Object: Period.

Resource URL

http://kyuko.catchball.co/api/1/kyuko.json

Resource Information

Response format
JSON
Require authentication?
Yes

Parameters

Field R/O Description
api_key required client identifier API key
screen_name required university identifier

Example Request

curl http://kyuko.catchball.co/api/1/kyuko.json?api_key=testing123&screen_name=uec

Example Result

{
    "items": [
        {
            "campus_name": null, 
            "code": null, 
            "date": "2015-01-06", 
            "department": "【大学院】IS-MS", 
            "grade": null, 
            "hash": "A494D8FABA58FAB544CA8998517D3873", 
            "lecturer": "橋山", 
            "note": "IS-S「メディアシステム学」", 
            "period": {
                "from": 2, 
                "to": 2
            }, 
            "source": "http://kyoumu.office.uec.ac.jp/kyuukou/kyuukou2.html", 
            "subject": "情報メディア論2"
        }, 
        {
            "campus_name": null, 
            "code": null, 
            "date": "2015-01-06", 
            "department": "【学部】教職科目", 
            "grade": null, 
            "hash": "C243DFC2F4D482C7646829BB84474BB8", 
            "lecturer": "○西野(真)", 
            "note": null, 
            "period": {
                "from": 5, 
                "to": 5
            }, 
            "source": "http://kyoumu.office.uec.ac.jp/kyuukou/kyuukou.html", 
            "subject": "道徳教育の研究"
        }, 
        {
            "campus_name": null, 
            "code": null, 
            "date": "2015-01-07", 
            "department": "【学部】人文社会", 
            "grade": null, 
            "hash": "7AD13EF496C60FF7D901C7B364ABCD9A", 
            "lecturer": "○執行", 
            "note": null, 
            "period": {
                "from": 1, 
                "to": 1
            }, 
            "source": "http://kyoumu.office.uec.ac.jp/kyuukou/kyuukou.html", 
            "subject": "文化人類学B"
        }
    ], 
    "last_update": "0001-01-01T00:00:00.0000000", 
    "message": null, 
    "university": {
        "campuses": [
            {
                "coordinates": {
                    "latitude": 35.656045, 
                    "longitude": 139.544066
                }, 
                "id": 2, 
                "names": {
                    "en_us": "Chofu", 
                    "local": "調布", 
                    "locale": "ja-JP"
                }, 
                "screen_name": "uec_chofu"
            }
        ], 
        "has_cancel": true, 
        "has_extra": false, 
        "id": 6, 
        "message": null, 
        "names": {
            "en_us": "University of Electro-Communications", 
            "local": "電気通信大学", 
            "locale": "ja-JP"
        }, 
        "screen_name": "uec"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment