====== 1. Authentication ======
Every message that is sent to Club Planner API must be accompanied by a **token** that is preconfigured in the club planner database parameters.
===== 2 Functions =====
==== 2.1 Member.Connect ====
//No longer supported//
===== 2.2 Member.AddMember =====
Method: member/AddMember
///
/// Adds a new member without a subscription
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
Example:
https://cloud.clubplanner.be/demo/api/member/addmember?token=DEMOTOKEN&firstname=John&lastname=Peterson
Result:
{"Id":123456817,"OwnerId":1,"OwnerName":"Demo","FullName":"John Peterson","CheckInStatus":"No valid subscription found"}
===== 2.3 Member.UpdateMember =====
Method: member/UpdateMember
///
/// Updates an existing member
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
===== 2.4 General.GetClubs =====
Method: general/GetClubs
///
/// Returns all clubs available
///
///
Example:
https://cloud.clubplanner.be/demo/api/general/GetClubs?token=DEMOTOKEN
Result:
[{"Id":1,"Name":"Demo","AddressLine":"Molenstraat 1","City":"Brussel","Zip":"1000","EMail":"info@test.be"},{"Id":2,"Name":"Demo Club 2","AddressLine":"Langeweg 123","City":"Antwerpen","Zip":"2000","EMail":"info@test.be"}]
===== 2.5 Member.GetMember =====
Method: member/GetMember
///
/// Get a member via MemberId, put in the ID OR email
///
///
///
///
Example’s:
https://cloud.clubplanner.be/demo/api/member/getmember?token=DEMOTOKEN&id=1
or
https://cloud.clubplanner.be/demo/api/member/getmember?token=DEMOTOKEN&email=jane.johanson%40mail.com
Result:
{"Id":1,"UId":"GMOL1","OwnerId":1,"OwnerName":"Demo Brussels","FirstName":"Jane","LastName":"Johanson","CheckInStatus":"20 turns left valid until 7 maart Remainder 60,00 €","CheckInStatusId":"HasRemainderLeft","EmailAddress":"jane.johanson@mail.com","MobileNumber":"04812121340","City":"Bruxelles","Zip":"1000","Address":"Streetroad 1","BirthDate":"14/07/1963","LastVisit":"08/08/2016 17:53","NumberOfVisits":8476,"Password":"0LlHgtVlYrxx3y1ch/lfGFmADSENw1wSK67fxRMQWZjE45FFWta1IrHTIM0oOgr5Q33MbfW7jR7vblHz+uLs","LanguageId":"EN"}
2.6 Member.AddSubscription
Method: member/AddSubscription
///
///
///
///
///
///
///
///
///
Add a subscription to a given member.
Note : you can’t have 2 subscriptions active on the same date, in that case the API will return a 400 badrequest.
Examples:
https://cloud.clubplanner.be/demo/api/member/AddSubscription?token=DEMOTOKEN&memberid=1&subid=1&startdate=01/01/2018&reference=mollie_tx_1234534789
https://cloud.clubplanner.be/demo/api/member/AddSubscription?token=DEMOTOKEN&memberid=1&subid=2&startdate=01/01/2017&option1=1
https://cloud.clubplanner.be/demo/api/member/AddSubscription?token=DEMOTOKEN&memberid=2&subid=2&startdate=20/12/2017&option1=1&option2=2&option3=3&reference=mollie_tx_1234534789
2.7 Member.GetMemberSubscriptions
///
///
Get the list of membersubscriptions for a given member.
Note : only items with begindate < today + 30 days will be returned.
Example :
https://cloud.clubplanner.be/demo/api/member/GetMemberSubscription?token=DEMOTOKEN&memberid=1
2.8 Member.ForgotPassword
///
///
///
Sends an email to the member with the memberid and password.
This email can be configured using an email template. You need to provide memberid or email.
Can be used in a forgot password screen on a website .
Return Ok when password was sent, or BadRequest when member was not found.
2.9 Member.GetSubscriptionOptions
Method: member/GetSubscriptionOptions
///
///
///
Get the options for a given subscription.
Example :
https://cloud.clubplanner.be/demo/api/member/GetSubscriptionOptions?token=DEMOTOKEN&subid=1&ownerid=1
https://cloud.clubplanner.be/demo/api/member/GetSubscriptionOptions?token=DEMOTOKEN&subid=2&ownerid=1
2.10 General.GetClub
Method: general/GetClub
///
///
Get the properties of a given club
Example:
https://cloud.clubplanner.be/demo/api/general/GetClub?token=DEMOTOKEN&id=1
2.11 General.GetCheckInPoint
///
///
Get the properties of a given checkinpoint
Example:
https://cloud.clubplanner.be/demo/api/general/GetClub?token=DEMOTOKEN&id=1
2.12 Member.GetStatusses
///
Get all configured statustypes.
2.13 Member.UpdateStatus
///
///
///
///
Update the status of a member.
2.14 Member.UpdateSubscription
///
///
///
///
///
///
Update a given membersubscription.
2.15 Member.DeleteSubscription
///
///
///
Removes a given membersubscription.
Note : you can only delete unpaid membersubscriptions via the API.
2.16 Member.GetSubscriptions
///
///
Get the configured subscriptiontypes of a given club
2.17 Planner.GetCalendars
http://cloud.clubplanner.be/demo/api/planner/getcalendars?token=DEMOTOKEN&memberid=1
///
/// Returns all calendargroups available
///
///
///
2.18 Planner.GetCalendarItems
http://cloud.clubplanner.be/demo/api/planner/getcalendarItems?token=DEMOTOKEN&id=1&date=01/01/2017&days=7
///
/// Returns all items in the give calendar where the member has access to
///
///
///
///
/// 1
Get all calenderitems for a given calender and date, set id = 0 for all calendars (= no filter).
2.19 Planner.AddReservation
///
///
///
///
///
///
Add a reservation to a calendaritem
2.20 Planner.GetReservations
///
///
Get all the reservations for a given member
2.21 Planner.CancelReservation
///
///
///
Cancel a given reservation