Epitech Library in Php providing kind of Apis for accessing Epitech intranet
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
android.php
exporter.class.php
func.inc.php
functions.inc.php
liveview.php
parser.php
ssh.class.php
user.class.php

README.md

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