Архив форума Ace Stream

Базовые продукты ACE Stream ( Torrent Stream ) => Вопросы, предложения и пожелания => Тема начата: atlantius21 от 30 Сентября 2017, 12:10:21

Название: Troubles with P2P search API
Отправлено: atlantius21 от 30 Сентября 2017, 12:10:21
I tried to search with this test api key and I can't open search results
https://search.acestream.net/?method=search&api_version=1.0&api_key=test_api_key&query=arena
I tried create my api key and I have create one in https://user737586.acestream.net/resellerBut when I try to search again with my api, I get this message:

{"error":"Failed to verify API key"}
What I need to do to verify?
Название: Re: Failed to verify API key
Отправлено: Benny от 30 Сентября 2017, 12:33:04
I tried to search with this test api key and I can't open search results
https://search.acestream.net/?method=search&api_version=1.0&api_key=test_api_key&query=arena
Something is wrong on the your side - this link is working normally (see attach, query result is grouped by channel name).
I tried create my api key and I have create one in acestream.net/reseller
This is a reseller key, those keys not bound to the search API for the moment.
Название: Re: Failed to verify API key
Отправлено: atlantius21 от 30 Сентября 2017, 12:41:05
Something is wrong on the your side - this link is working normally (see attach, query result is grouped by channel name).
Maybe you will get results, but no one stream cant open
c29096cb846d31d60e880245060e6fed9a046cb9

I think because this is beta api key
I need to activate my api, how to do that?

Название: Re: Failed to verify API key
Отправлено: Benny от 30 Сентября 2017, 13:03:16
Maybe you will get results, but no one stream cant open
So what, you can or cannot get results?
... but no one stream cant open c29096cb846d31d60e880245060e6fed9a046cb9
Something is wrong on the your side (see attach).

PS Beware, "infohash" and "content ID" is NOT the same thing, so you CANNOT copy/paste "infohash" as "cid" in the "Ace Stream" apps.
Название: Re: Failed to verify API key
Отправлено: atlantius21 от 30 Сентября 2017, 13:16:44
Something is wrong on the your side (see attach).

PS Beware, "infohash" and "content ID" is NOT the same thing, so you CANNOT copy/paste "infohash" as "cid" in the "Ace Stream" apps.

What is wrong on my side? I tried on two different PC's and get same error.
Anyway "content ID" doesnt exist in json search. Only "infohash".
I only can paste  infohash in Ace Player, because this is stream link? Or mybe mot?
acestream://c29096cb846d31d60e880245060e6fed9a046cb9


Название: Re: Failed to verify API key
Отправлено: Benny от 30 Сентября 2017, 13:40:20
What is wrong on my side?
May be - user itself? =) Did you try to read http://wiki.acestream.media first?
Anyway "content ID" doesnt exist in json search. Only "infohash".
Yes. And if you're understand this, why you keep trying to use "infohash" as "content ID"?
This
acestream://c29096cb846d31d60e880245060e6fed9a046cb9
is WRONG! "acestream://" for CID, not for infohash.

If you want CID, then you should get CID from infohash first, using something like
http://127.0.0.1:6878/server/api?method=get_content_id&infohash=c29096cb846d31d60e880245060e6fed9a046cb9
or you can play infohash directly, using (in the player) URL like
http://127.0.0.1:6878/ace/getstream?infohash=c29096cb846d31d60e880245060e6fed9a046cb9In the both cases Ace Stream engine should be running.
Название: Re: Failed to verify API key
Отправлено: atlantius21 от 30 Сентября 2017, 13:52:38
If you want CID, then you should get CID from infohash first, using something like
http://127.0.0.1:6878/server/api?method=get_content_id&infohash=c29096cb846d31d60e880245060e6fed9a046cb9
or you can play infohash directly, using (in the player) URL like
http://127.0.0.1:6878/ace/getstream?infohash=c29096cb846d31d60e880245060e6fed9a046cb9In the both cases Ace Stream engine should be running.


You are right! I don't know that. Thanks.
But this is only for local. I need to get CID from web search, something like:

https://search.acestream.net/?method=search&get_content_id&api_version=1.0&api_key=test_api_key&query=arena
or
https://search.acestream.net/?method=get_content_id&infohash=c29096cb846d31d60e880245060e6fed9a046cb9

I hope you can understand me.
Is this possible?
Название: Re: Failed to verify API key
Отправлено: Benny от 30 Сентября 2017, 14:03:25
I need to get CID from web search Is this possible?
"You need" as "who" - as user, or as developer?
As user you already can use our "P2P search" script within AWE (http://awe.acestream.me) in the browser, or use third-party solution, which allows users to search for "P2P media" without Ace Stream (use google to search for such services).
As developer you should put some extra effort to use search API in the current implementation, or just wait until CID also will be included in the search output (this will be done in the future releases).
Название: Re: Failed to verify API key
Отправлено: atlantius21 от 30 Сентября 2017, 14:12:38
"You need" as "who" - as user, or as developer?
As developer. I tried to get api for developer but I only found acestream.net/reseller.
I have fonud also this link https://api-sandbox.acestream.net/developer but it say
{"error":"missing method"}
So developer api have this option?
How to get developer api?
Название: Re: Failed to verify API key
Отправлено: Benny от 30 Сентября 2017, 14:23:21
How to get developer api?
Forget about developer key for "Search API" - they don't exist yet. Use "test_api_key" as key.
Название: How to get EPG?
Отправлено: atlantius21 от 06 Октября 2017, 23:27:14
I want to get epg in json. I enter this:
https://search.acestream.net/?method=search&api_version=1.0&api_key=test_api_key&query=discovery&&show_epg=1but desn't show me EPG

How to get epg with web search?
And what is time zone for all acestream channels?
Thanks
Название: Re: How to get EPG?
Отправлено: Benny от 07 Октября 2017, 11:33:14
I want to get epg in json. I enter this:
https://search.acestream.net/?method=search&api_version=1.0&api_key=test_api_key&query=discovery&&show_epg=1but desn't show me EPG. How to get epg with web search?
RTFM - http://wiki.acestream.media/Search_API#search
Цитировать
show_epg (boolean, 0 or 1) - include EPG in the response (this works only when group_by_channels=1)
Note - EPG availability may vary from channel to channel.

We don't control channels time zone - this completely relies on the broadcaster.