SDK for developing custom mobile applications

1,329 views
Skip to first unread message

Petru-Primcast

unread,
Dec 23, 2016, 4:03:42 AM12/23/16
to Stalker Middleware
Hello,

I am looking to develop custom mobile applications that would play content from a STALKER account but I haven't found anything about a SDK or APIs for allowing to communicate with STALKER and get the videos list, playlists etc.

I am first interested into developing applications for Android, IOS and Roku.

Do you guys know any APIs that would facilitate this or is one to use just the official Android and IOS aplications?

Алексей Ксензов

unread,
Dec 25, 2016, 10:45:26 PM12/25/16
to Stalker Middleware
http://soft.infomir.com.ua/mag250/Doc/JS%20API%20MAG200%20(Rev%201.20).pdf

пятница, 23 декабря 2016 г., 16:03:42 UTC+7 пользователь Petru-Primcast написал:

Pushpraj Katiyar

unread,
Dec 28, 2016, 1:08:24 AM12/28/16
to Stalker Middleware
Hello

I can develop application for iOS and android on stalker based API.

thanks
Pushpraj
Skype: pushprajkatiyar
Message has been deleted

Petru-Primcast

unread,
Jan 3, 2017, 10:54:11 AM1/3/17
to Stalker Middleware
So I was able to get the authentication token from STALKER with a POST to http://stalker_middleware.com/stalker_portal/auth/token :
{"token_type":"bearer","access_token":"2.796e02f87c2ddde0e8092c9595964924","refresh_token":"fdd99efcf87825e10d57bd5642c658ab","user_id":2,"expires_in":86400,"portal_url":"\/stalker_portal\/","api":{"v2":{"token_type":"bearer"},"v3":{"token_type":"mac","mac_algorithm":"hmac-hash-version","mac_key":"a3f5b9fbf7db1db0a79655cfd2f3e01f"}}}
 
Now how can I use this to get the list of tv-channels?
From what I understand we can query http://stalker_middleware.com/stalker_portal/api/v3/users/2/tv-channels and either use MAC scheme or BEARER scheme.
If we're to use the MAC scheme we must use the following authorization pattern:
""MAC id=\"received_token\",ts=\"epoch_in_seconds\",nonce=\"unique_string\",mac=\"?????????????????????????????\"";
Now how do we calculate the mac needed here? I think it's a SHA-1 but on what?

If we are to use the BEARER scheme we must use the following authorization:
"Bearer ???????????????????";
What are we supposed to use here? It's again probably a SHA-1 but I don't know on what.
If we use the received token we get "error":"UnauthorizedError","message":"Wrong hash version."
If we use the refresh_token we get "error":"UnauthorizedError","message":"Authorization required. Session not found."

Does anybody have any experience with this and can shed some light on it?
Message has been deleted

Petru-Primcast

unread,
Jan 4, 2017, 7:54:44 AM1/4/17
to Stalker Middleware
So I learned more about OAuth 2 and I was able to get a token and use it to get the list of channels.
Only that on another server my previous approach don't work anymore.

So with the token received from http://162.244.80.136:88/stalker_portal/auth/token I tried a GET to http://162.244.80.136:88/stalker_portal/api/v2/users/2/tv-channels with("Authorization", "Bearer " + accessToken)
The response is {"status":"OK","results":[]}

So it returns no channel, no data actually although there are some iptv channels on this server.
Why could that be?

Petru-Primcast

unread,
Mar 20, 2017, 9:55:53 AM3/20/17
to Stalker Middleware
Hello,


So I have been using until now APIv2 on which you can login using just he token.

Unfortunately because of inconsistent results on getting the video categories I am forced to change to APIv3.

Thing is, I still don't know how to get the SHA-1 hash required for Authorization on APIv3.
I know the OAuth theory with how to get the base string and the signature and then obtain a hmac sha1 with them but I don't seem to get the correct result.

For a basic request, let's say "..../profile":
For the Base string I am concatenating the HTTP method + URL + the parameters of the authorization (id, timestamp, nonce, minus the signature), all html encoded 
For the Signature key I'm using either the "mac_key" which I got with the token + '&' , either that "mac_key"&"auth_token"

Does anybody have any idea on how exactly to get the SHA1 hash? What to use for signature key?

Info Myenail

unread,
Jun 15, 2018, 3:33:41 PM6/15/18
to Stalker Middleware
Pushpraj Katiyar is a liar and a thief he has scammed me and my partner with 6000 usd
Never made development for us it's 3 months of lying and when we threaten to file a complaint to the police it gives us a development code done in 3 minutes that does not correspond to anything not trust this person , and now he likes to use the money that is not his and make the beautiful on the internet, it is a shame to the Hindu with all my respect for the Indians, I wanted to share it with you so that you know the true personality of Pushpraj Katiyar
I am ready to give you the code that he sent us so that you can judge for yourself just ask
He even claimed that mom was sick to flee these responsibilities.
SHAME ON YOU

Info Myenail

unread,
Jun 15, 2018, 3:33:58 PM6/15/18
to Stalker Middleware
Pushpraj Katiyar is a liar and a thief he has scammed me and my partner with 6000 usd
Never made development for us it's 3 months of lying and when we threaten to file a complaint to the police it gives us a development code done in 3 minutes that does not correspond to anything not trust this person , and now he likes to use the money that is not his and make the beautiful on the internet, it is a shame to the Hindu with all my respect for the Indians, I wanted to share it with you so that you know the true personality of Pushpraj Katiyar
I am ready to give you the code that he sent us so that you can judge for yourself just ask
He even claimed that mom was sick to flee these responsibilities.
SHAME ON YOU


Info Myenail

unread,
Jun 15, 2018, 3:34:17 PM6/15/18
to Stalker Middleware
Pushpraj Katiyar is a liar and a thief he has scammed me and my partner with 6000 usd
Never made development for us it's 3 months of lying and when we threaten to file a complaint to the police it gives us a development code done in 3 minutes that does not correspond to anything not trust this person , and now he likes to use the money that is not his and make the beautiful on the internet, it is a shame to the Hindu with all my respect for the Indians, I wanted to share it with you so that you know the true personality of Pushpraj Katiyar
I am ready to give you the code that he sent us so that you can judge for yourself just ask
He even claimed that mom was sick to flee these responsibilities.
SHAME ON YOU


Le vendredi 23 décembre 2016 10:03:42 UTC+1, Petru-Primcast a écrit :
Message has been deleted
Message has been deleted

nice nice

unread,
Apr 23, 2020, 4:23:28 PM4/23/20
to Ministra TV platform (formerly Stalker Middleware) on behalf of P G
I'm looking also urgently 

On Wed, 22 Apr 2020, 1:07 AM P G, Ministra TV platform (formerly Stalker Middleware), <stalker-middleware+APn2wQfS97_VK...@googlegroups.com> wrote:
Hi Can you please help me ? I am trying to make app too. Need to know how to get data just with mac id.

--
Вы получили это сообщение, поскольку подписаны на группу "Ministra TV platform (formerly Stalker Middleware)".
Чтобы отменить подписку на эту группу и больше не получать от нее сообщения, отправьте письмо на электронный адрес stalker-middlew...@googlegroups.com.
Чтобы посмотреть обсуждение на веб-странице, перейдите по ссылке https://groups.google.com/d/msgid/stalker-middleware/437dd6f3-cb94-4ba1-9f17-5c44f79c6e8a%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages