Adds initial files for membership integration with SnappOrder
This commit is contained in:
1 parent
33468ed02f
commit
b0ef7061c1
8 files changed
+136
No files matched your search
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/*
|
||||
* Lookup a members phone number and return a member-like object.
|
||||
*
|
||||
* Request:
|
||||
*
|
||||
* $ curl /snapporder/api/query.php?phone=48105885
|
||||
*
|
||||
* Response:
|
||||
*
|
||||
* {
|
||||
* "phone":12345678,
|
||||
* "memberStatus":1, // 0 - ikke medlem, 1 - medlem, 2 - aktiv
|
||||
* "endDate": "2015-04-23",
|
||||
* "membershipNumber": "dsadsa2333",
|
||||
* "firstName": "Jon",
|
||||
* "lastName": "Hansen",
|
||||
* "email": "jon@uio.no"
|
||||
* }
|
||||
*
|
||||
* TODO:
|
||||
* - Decode http body
|
||||
* - validate and sanitize query param
|
||||
* - lookup up phone number
|
||||
* - return result
|
||||
*/
|
||||
Reference in new issue
Block a user