Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MediaDBViewerAPI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BA_SI-Projekt
MediaDBViewerAPI
Commits
7fd2a405
Commit
7fd2a405
authored
Jan 12, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init Readme
parent
35b133b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
README.md
README.md
+60
-0
No files found.
README.md
0 → 100644
View file @
7fd2a405
# API DOKU
Die API ist unter folgender URL zu finden:
http://mediadb.ivaya.de/api.php?KEY={%KEY%}&action={%Action%}
## Der API Key {%KEY%}
Der API KEY ist eine zufällig generierte Zeichenfolge aus Buchstaben (a-z, A-Z) und Zahlen (0-9). Zurzeit gibt es keine Möglichkeit API-Keys zu Generieren aber folgende Keys sind verfügbar:
<table>
<tr>
<th>
Key
</td><td>
Rechte
</th>
</tr>
<tr>
<td>
0123456789
</td><td>
alle Rechte (lesen/schreiben)
</td>
</tr>
</table>
## Die Antwort vom Server (JSON)
`{
"API_VERSION": 0.001,
"API_KEY": "0123456789",
"API_Laufzeit": "0.00017",
"Antwort": {
[%ACTION% - Abhängige Antwort]
}
}`
*
API_VERSION - Die Version der API
*
API_KEY - der Verwendete API_KEY
*
API_Laufzeit -Die Laufzeit der API
## Die verfügbaren Actions {%Action%}, und deren Antwort
### Respons auf serverinfo
`{
"API_VERSION": 0.001,
"API_KEY": "0123456789",
"API_Laufzeit": "0.00009",
"Antwort": {
"time": 1452585836,
"HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 6.3; WOW64; rv:43.0) Gecko\/20100101 Firefox\/43.0",
"REMOTE_ADDR": "195.37.187.27"
}
}`
### Respons auf GetDataListe
Dieser Aufruf hat folgende Zusätzliche Parameter:
http://mediadb.ivaya.de/api.php?KEY={%KEY%}&action={%Action%}&Table={%Table%}
[
&Spalten={%Spalten%}
]
*
{%Table%} Mysql Tabelle die genutzt werden soll.
*
({%Spalten%} z.b. imdbID,name,duration)
*
()
### Fehler Antwort:
`{
"API_VERSION": 0.001,
"API_KEY": "0123456789",
"API_Laufzeit": "0.00012",
"Antwort": {
"FehlerID": 1003,
"FehlerText": "Die gew\u00fcnschte 'action' serverinfoasdf exisitiert nicht!"
}
}`
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment