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
62f63e21
Commit
62f63e21
authored
Jan 11, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Viele Kleinigkeiten
u.a.
parent
10516467
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
api.php
api.php
+13
-3
No files found.
api.php
View file @
62f63e21
...
...
@@ -4,16 +4,26 @@
* @author Nico Schallehn, Markus Then
*
*/
//header('Content-type: text/html; charset=UTF-8');
header
(
'content-type: application/json; charset=utf-8'
);
include
'api.class.php'
;
/**
* Konfig:
*/
define
(
API_KEY_LEN
,
10
);
define
(
API_VERSION
,
0.00001
);
$API
=
new
MediaDBViewerAPI
();
if
(
$API
=
new
MediaDBViewerAPI
(
$_GET
[
'KEY'
])){
if
(
$API
->
APIinit
(
$_GET
[
'KEY'
])){
$respons
=
$API
->
error
(
1001
);
}
else
{
$respons
=
$API
->
error
(
1002
);
}
echo
json_encode
(
$respons
);
echo
json_encode
(
APIrespons
(
$respons
),
JSON_PRETTY_PRINT
);
?>
\ 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