Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make self-hosted API? #1

Closed
DIYgod opened this issue Dec 5, 2017 · 1 comment
Closed

How to make self-hosted API? #1

DIYgod opened this issue Dec 5, 2017 · 1 comment

Comments

@DIYgod
Copy link

DIYgod commented Dec 5, 2017

Is there any complete code or docker image?

@metowolf
Copy link
Owner

metowolf commented Dec 5, 2017

Here is a simple example, which without any cache and auth system.

$ tree
.
├── Meting.php
├── api.php
└── demo.html
<script src="https://cdnjs.cloudflare.com/ajax/libs/aplayer/1.6.0/APlayer.min.js"></script>

<div class="aplayer"
    data-id="60198"
    data-server="netease"
    data-type="playlist">
</div>

<script>var meting_api='http://127.0.0.1/api.php?server=:server&type=:type&id=:id&r=:r';</script>
<script src="https://cdn.jsdelivr.net/npm/meting/dist/Meting.min.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants