Click here for a complete list of routes.
/members
GET /members/search restricted
This request returns a list of members satisfying search criteria. Following fields are used to find the members: the phone numbers, name, email addresses and company name.
The following is a sample HTTP GET request and response. The placeholders
shown need to be replaced with actual values.
Request example
GET /v2/members/search?q
=Franz+Must
& HTTP/1.1 Host: api.lions.at X-Authorization:access-token
Response example
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{
"success": true,
"count": 2,
"members": [
{
"id": 5,
"fullName": "Franz Muster",
"...": "..."
},
{
"id": 9,
"fullName": "Franz Mustermann",
"...": "..."
}
]
}
GET /members/username
restricted
This request returns the member with a given username.
The following is a sample HTTP GET request and response. The placeholders
shown need to be replaced with actual values.
Request example
GET /v2/members/username
HTTP/1.1 Host: api.lions.at X-Authorization:access-token
Response example
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{
"id": 5,
"fullName": "Franz Muster",
"...": "..."
}
GET /members/id
restricted
This request returns the member with a given identifier.
The following is a sample HTTP GET request and response. The placeholders
shown need to be replaced with actual values.
Request example
GET /v2/members/id
HTTP/1.1 Host: api.lions.at X-Authorization:access-token
Response example
HTTP/1.1 200 OK Content-Type: application/json Content-Length:length
{ "id":id
, "firstName": "Franz", "middleName": "", "lastName": "Muster", "fullName": "Franz Mustermann", "title": "", "email": "franz.muster@example.com", "partner": null, "privateAddress": "5110 Orci Ave\nF - 94663 Noicattaro", "privateAddressComponents": { "street": "5110 Orci Ave", "poBox": "", "postalCode": "94663", "city": "Noicattaro", "state": "", "country": "France" }, "privatePhone": "04 25 03 95 31", "privateMobile": "", "privateWww": "", "company": "Eget Company", "professionTitle": "Foster Care Social Worker", "professionFunction": "Head of Human Resources", "businessAddress": "9155 Sagittis Av.\nF - 05529 S\u00fcke", "businessAddressComponents": { "street": "9155 Sagittis Av.", "poBox": "", "postalCode": "05529", "city": "S\u00fcke", "state": "", "country": "France" }, "businessPhone": "(849) 204-4339", "businessMobile": "", "photo": "franz.muster.jpg", "birthday": "1975-07-04", "lionsFunctionCode": "", "lionsFunction": "", "club": { "id": 2678, "name": "Carcassonne Liberte", "type": "LIONS_CLUB" }, "socialNetworks": { "twitter": "https://www.twitter.com/franzmuster" } }
Name | Type | Description |
---|---|---|
socialNetworks | array | Array of pair of "type": "public URL" where type is one of skype , twitter , facebook , linkedIn , xing , instagram , flickr , youtube , pinterest . |
GET /members/photo/identifier.jpg
This request returns a photo for a given member.
The following is a sample HTTP GET request and response. The placeholders
shown need to be replaced with actual values.
Request example
GET /v2/members/photo/identifier.jpg
HTTP/1.1
Host: api.lions.at
Optional parameters
Name | Type | Description |
---|---|---|
s | int | Size in pixels of the (square) image to return in range 10 – 1536. Defaults to 80. |
Response example
HTTP/1.1 200 OK
Content-Type: image/jpeg
Content-Length: length
(binary data)
GET /members/id
/history
restricted
This request returns Lions history for the given member.
The following is a sample HTTP GET request and response. The placeholders
shown need to be replaced with actual values.
Request example
GET /v2/members/id
/history HTTP/1.1 Host: api.lions.at X-Authorization:access-token
Optional parameters
Name | Type | Description |
---|---|---|
locale | string | de , fr , ... to get localized function names. Defaults to English. |
Response example
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{
"success": true,
"count": 2,
"entries": [
{
"type": "FUNCTION",
"title": "Secretary",
"scope": "LC Broye Vully",
"startDate": "2014-01-07",
"endDate": "2016-06-30",
"active": false
},
{
"type": "STATUS",
"title": "Active Member",
"scope": "LC Broye Vully",
"startDate": "2013-10-18",
"endDate": "",
"active": true
}
]
}