19 Январь 2018, 23:14:33Последний пользователь: Алексей555
Страниц: [1]   Вниз
  Отправить эту тему  |  Печать  
Автор Тема: Troubles with P2P search API  (Прочитано 1120 раз)
0 Пользователей и 1 Гость смотрят эту тему.
atlantius21
Newbie
*
Оффлайн Оффлайн
Сообщений: 6

Email
« : 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?
Сообщить модератору   Записан
Benny
Administrator
Hero Member
*****
Оффлайн Оффлайн
Сообщений: 666

Email
« Ответ #1 : 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.


* sapi.png (21 кБ, 927x328 - просмотрено 92 раз.)
Сообщить модератору   Записан
atlantius21
Newbie
*
Оффлайн Оффлайн
Сообщений: 6

Email
« Ответ #2 : 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?



* Screenshot-2017-09-30-11.37.44.png (67.27 кБ, 764x546 - просмотрено 92 раз.)
« Последнее редактирование: 30 Сентябрь 2017, 12:49:08 от atlantius21 » Сообщить модератору   Записан
Benny
Administrator
Hero Member
*****
Оффлайн Оффлайн
Сообщений: 666

Email
« Ответ #3 : 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.


* sapi2.png (141.95 кБ, 1280x399 - просмотрено 88 раз.)
Сообщить модератору   Записан
atlantius21
Newbie
*
Оффлайн Оффлайн
Сообщений: 6

Email
« Ответ #4 : 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




* sapi.png (48.49 кБ, 927x328 - просмотрено 86 раз.)
Сообщить модератору   Записан
Benny
Administrator
Hero Member
*****
Оффлайн Оффлайн
Сообщений: 666

Email
« Ответ #5 : 30 Сентябрь 2017, 13:40:20 »

What is wrong on my side?
May be - user itself? =) Did you try to read http://wiki.acestream.org 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.
Сообщить модератору   Записан
atlantius21
Newbie
*
Оффлайн Оффлайн
Сообщений: 6

Email
« Ответ #6 : 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?
Сообщить модератору   Записан
Benny
Administrator
Hero Member
*****
Оффлайн Оффлайн
Сообщений: 666

Email
« Ответ #7 : 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).
Сообщить модератору   Записан
atlantius21
Newbie
*
Оффлайн Оффлайн
Сообщений: 6

Email
« Ответ #8 : 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?
Сообщить модератору   Записан
Benny
Administrator
Hero Member
*****
Оффлайн Оффлайн
Сообщений: 666

Email
« Ответ #9 : 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.
Сообщить модератору   Записан
atlantius21
Newbie
*
Оффлайн Оффлайн
Сообщений: 6

Email
« Ответ #10 : 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
Сообщить модератору   Записан
Benny
Administrator
Hero Member
*****
Оффлайн Оффлайн
Сообщений: 666

Email
« Ответ #11 : 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.org/wiki/index.php/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.
Сообщить модератору   Записан
Страниц: [1]   Вверх
  Отправить эту тему  |  Печать