New plugin available: Cloud (access to Box, Dropbox, etc).

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
iana
Senior Member
Senior Member
Posts: 345
Joined: 2010-07-27, 22:00 UTC

Post by *iana »

is mega a possibility the 50GiB of free storage is appealing
https://mega.co.nz/#doc
damjang
Senior Member
Senior Member
Posts: 215
Joined: 2003-10-09, 15:58 UTC
Contact:

Post by *damjang »

iana wrote:is mega a possibility the 50GiB of free storage is appealing
https://mega.co.nz/#doc
+1 for mega if possible!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Mega uses a completely different access model (not REST API) with local data encryption. It could be done in a separate plugin, but not this plugin.

2flm404
Mail.ru seems possible. Here are the docs:
http://api.mail.ru/docs/guides/restapi/

However, they also require a parameter "User ID" (UID). I couldn't find out what this parameter is - it seems to be numeric, not the e-mail address. Could you log into your mail.ru account and try to find out how to get it, please?
Author of Total Commander
https://www.ghisler.com
krasusczak
Senior Member
Senior Member
Posts: 282
Joined: 2011-09-23, 10:35 UTC

Post by *krasusczak »

@edit:


Hello i think that "User ID" (UID) you can get from url for ex.:


http://appsmail.ru/platform/mail/(login)/ -> response to (http://my.mail.ru/mail/(login)/)
http://appsmail.ru/platform/community/(communitylogin)/ -> response to (http://my.mail.ru/community/(communitylogin)/)


uid depends from url for
http://appsmail.ru/platform/mail/ammo/
will be
{"uid":"17262154615607684006"}

for
http://appsmail.ru/platform/community/ammo/
will be
{"uid":"17262154619882993990"}


However uid from mail or community probably wont work with cloud... & i can't find other uid info..




@edit2:

If you still looking for logout for Yandex i have something like this:
https://passport.yandex.com/?mode=logout&yu=(somenumbers)&retpath=http://www.yandex.com&clean=yes
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2krasusczak
Did you find anything in the docs (to which I linked) on how to get this UID? If the end user cannot find it, it would be quite useless to add mail.ru support. Maybe there is a function to get it when sending username and password? It doesn't seem to be returned in the normal OAUTH login function.
If you still looking for logout for Yandex i have something like this
Yes, I'm still looking for it - but what is the "somenumbers"? Also, to my knowledge, oauth.yandex.com and passport.yandex.com are separate logins.
Author of Total Commander
https://www.ghisler.com
krasusczak
Senior Member
Senior Member
Posts: 282
Joined: 2011-09-23, 10:35 UTC

Post by *krasusczak »

Regarding to this doc: http://api.mail.ru/docs/guides/url-to-uid/

End-user can find uid in two ways by checking this links:
for mail:
http://appsmail.ru/platform/mail/(login)/ -> response to (http://my.mail.ru/mail/(login)/)
for community:
http://appsmail.ru/platform/community/(communitylogin)/ -> response to (http://my.mail.ru/community/(communitylogin)/)

or he can use javascript & bookmarklet but basically this is exactly the same as first method only in different way...

because my cloud opens as https://cloud.mail.ru/home/ maybe uid from mail will be good..





sorry i didn't have time to look exactly what is this "somenumbers", this is from cookie:
domain: ".yandex.com"
name: "yandexuid"

logout: https://passport.yandex.com/?mode=logout&yu=(yandexuid)&retpath=http://www.yandex.com&clean=yes


but i can also login to yandex from yandex.ru & then i will have cookie:
domain: ".yandex.ru"
name: "yandexuid"

logout: https://passport.yandex.ru/?mode=logout&yu=(yandexuid)&retpath=http://www.yandex.ru&clean=yes


Both links work separately i can logoff from ru & com will still works, i can logoff from com & ru will still works

oauth.yandex.com may have same login but i'm not sure
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

End-user can find uid in two ways
Is it possible to get the UID programmatically? I can't expect that normal users will find their UID.
Author of Total Commander
https://www.ghisler.com
krasusczak
Senior Member
Senior Member
Posts: 282
Joined: 2011-09-23, 10:35 UTC

Post by *krasusczak »

Like i wrote before for now i have found only this way, i will try to search more


p.s.
but normal user don't need to know how to find the uid, maybe it can be done like this:

User provide login & password
Before plugin send data to oauth, first will read http from http://appsmail.ru/platform/mail/(userlogin) & then give all data to oauth :?

of course this will works if uid from mail.ru will work on cloud if not i have no idea...



@edit:
maybe instead of $uid you can use $session_key (basically they recommended usage of session_key), after login you should get session_key
krasusczak
Senior Member
Senior Member
Posts: 282
Joined: 2011-09-23, 10:35 UTC

Post by *krasusczak »

Christian because I'm not so familiar with API maybe this links help you, there is some working code with mail.ru API:

http://sysmagazine.com/posts/126872/
https://github.com/ademin/mailru-api
https://github.com/kostya-ten/Mojolicious-Plugin-OAuth/blob/master/lib/Mojolicious/Plugin/OAuth/Mailru.pm
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, I will have a look at it! Maybe I can find out how to get this user id...
Author of Total Commander
https://www.ghisler.com
MeTAlMollY
Junior Member
Junior Member
Posts: 18
Joined: 2003-03-13, 14:55 UTC
Location: Netherlands

Post by *MeTAlMollY »

ghisler(Author) wrote:Unfortunately this doesn't support the normal REST API of the normal OneDrive API. I don't know whether it supports a REST API at all. You should be able to access it with the WebDAV plugin, though, after you have logged into your account in Internet Explorer.
I'm not sure if this is usefull? Would be great if the plugin supports OneDrive for Business...
http://blogs.msdn.com/b/sharepointdev/archive/2013/08/13/access-skydrive-pro-using-the-sharepoint-2013-apis.aspx
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, looks rather complex - I couldn't figure out how to query the content of a folder, and how to download or upload a file.

Have you tried my suggestion to use my WebDAV plugin instead? Other users have reported that it works well.
Author of Total Commander
https://www.ghisler.com
User avatar
matixx
Power Member
Power Member
Posts: 1117
Joined: 2003-03-21, 02:37 UTC
Location: ....

Post by *matixx »

@ghisler: it think its vey usefull to implement the possibility of edit the download restriction of a file and get the dl-link to share it privat or public.
#101512
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes it would - but each cloud service seems to have a radically different permission management, so it would be quite hard to support that. For example, Google Drive allows to share a file with no one, certain users by their mail address, and to everyone who has the link.
Author of Total Commander
https://www.ghisler.com
phantom
Power Member
Power Member
Posts: 671
Joined: 2003-11-21, 15:34 UTC

Post by *phantom »

It seems that there is a problem with yandex.drive. I get the error message: Error, no code received! Need IE9 or later.

My System is: OS Windows XP Sp3 with IE8 (but default Browser is Mozilla Firefox 35) and TC 8.51a 32 Bit
Post Reply