Adds initial files for membership integration with SnappOrder

This commit is contained in:
nikolark committed 2014-05-10 16:13:41 +02:00
1 parent 33468ed02f
commit b0ef7061c1
8 files changed
+136

No files matched your search

+26
View File
@@ -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
*/