On Sun, 2013-12-22 at 14:16 -0500, Jasper St. Pierre wrote:
> You should be able to use Online Accounts to get the credentials. You
> can use the Goa library and GoaClient to try and look for OwnCloud
> accounts.

Just to document it for anybody else interested, this is the code I
managed to get working:

        let accounts = Goa.Client.new_sync(null).get_accounts();
        for (let i=0; i < accounts.length; i++) {
            let account = accounts[i].get_account();
            if (account.provider_type == "owncloud") {
                let pwd_based = accounts[i].get_password_based()
                let id = account.presentation_identity.split("@");
        
                let user = id[0];
                let url = id[1];
                let pwd = pwd_based.call_get_password_sync(
                    "", null, null)[1];
            }
        }

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
gnome-shell-list mailing list
gnome-shell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-shell-list

Reply via email to