Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

72 lines (36 sloc) 1.505 kb

Introduction

This is the Epitech-Mobile documentation.

Installation

Required:

PHP server with support of curl

Usage

Calling the Api:

Post and Get request are handled by android.php

You can query with HTTP Post and HTTP Get:

http://sshd.mikkl.fr/epitech_mobile/intra/android.php or https://sshd.mikkl.fr/epitech_mobile/intra/android.php

Example

You must send login, passwd and format with each query

HTTP Get - https://sshd.mikkl.fr/epitech_mobile/intra/android.php?login=epitech-login&passwd=epitech-ppp-password&action=fire&format=json

HTTP Post

Post url = https://sshd.mikkl.fr/epitech_mobile/intra/android.php

post['login'] = epitech-login;

post['passwd'] = epitech-ppp-password;

post['format'] = 'json';

post['action'] = 'fire';

Returns {"color":"green","desc":"Le feu est vert\t\t\t\t\t\t\t\t\t\t depuis 14 semaine(s), 6 jour(s), 0 heure(s) ( le 2012-08-28 05:20:08 )"}

Actions List

day - Returns current day planning

day and date (format DDMMYY) - Returns date planning

projects - Returns Projects List

notes - Returns marks

fire - Returns fire status

my_susie - Returns Susie Registred list

my_tokens - Returns Tokens to validate list

susie_register and susie_url - Register to a susie

susie_unregister and susie_url - Unregister to a susie

susie_list and date (format DDMMYY) - Returns list of susie for date

report and user - Returns report of user

version - Returns api version

token and event_id and token_val - Validates Token

Jump to Line
Something went wrong with that request. Please try again.