I got almost everything to work, the JS gets called, it logs the response, so 
it's OK, but for some reason I'm getting QProcess: Destroyed while process 
("/usr/bin/online-accounts-ui") is still running. Nothing gets added to the 
service statuses, so I can't do anything :(
From: bogdan.c...@hotmail.com
To: ubuntu-phone@lists.launchpad.net
Date: Sat, 14 Mar 2015 00:55:18 +0700
Subject: Re: [Ubuntu-phone] Scopes Online Accounts




Hmm... So now it doesn't get past the redirect. Basically after the user has 
granted (or denied) access, mixcloud redirects the user to the redirect url 
with an ?code=code_here and to get a token I have to use this code, but for 
some reason it just stops at the redirect url and that's it
From: bogdan.c...@hotmail.com
To: chris.wa...@canonical.com; ubuntu-phone@lists.launchpad.net
Date: Sat, 14 Mar 2015 00:26:50 +0700
Subject: Re: [Ubuntu-phone] Scopes Online Accounts




OK, guys, I just fixed it. I used the c++ code in the tutorial and forgot to 
modify it to work with the new code gotten from untappd. Thanks for your help, 
I'll reply to this thread if I have any more trouble.
From: bogdan.c...@hotmail.com
To: chris.wa...@canonical.com; ubuntu-phone@lists.launchpad.net
Date: Sat, 14 Mar 2015 00:18:53 +0700
Subject: Re: [Ubuntu-phone] Scopes Online Accounts




As you can see in the code, I modified it to fit the mixcloud api. And I don't 
think it's the QML, because I need to be presented with the authorization 
webpage first, don't I?

Date: Fri, 13 Mar 2015 13:02:02 -0400
Subject: Re: [Ubuntu-phone] Scopes Online Accounts
From: chris.wa...@canonical.com
To: bogdan.c...@hotmail.com
CC: michael.zane...@canonical.com; ubuntu-phone@lists.launchpad.net

The untappd qml-plugin calls the untappd api to get the user's name, so its 
entirely possible (probably) mixcloud doesn't have that api endpoint.  What I 
usually do when making a new account-plugin is copy the Main.qml for twitter's 
account-plugin (as it's essentially blank) and try to go from there.
On Fri, Mar 13, 2015 at 12:59 PM, Bogdan Cuza <bogdan.c...@hotmail.com> wrote:



I just tried this, and it still shows a blank page. One more thing, the code 
was just copied from untappd and edited to suit the mixcloud api, so if it 
works there, it should work here as well.

> Date: Fri, 13 Mar 2015 17:42:45 +0100
> From: michael.zane...@canonical.com
> To: ubuntu-phone@lists.launchpad.net
> Subject: Re: [Ubuntu-phone] Scopes Online Accounts
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> On 13.03.2015 17:21, Bogdan Cuza wrote:
> > Hi!
> > 
> > I thought it would be a good thing to add the OA functionality to
> > my Mixcloud scope, but unfortunately I wasn't able to succeed. I
> > tried following both the tutorial and the untappd scope's code, but
> > both just raise a Ubuntu-gray page that is blank and covers the
> > whole shell, so that I have to restart to exit it. I would really
> > appreciate it if someone could help me see what's wrong, you can
> > see the code here 
> > <https://github.com/boghison/mixcloudscope/tree/feature/online_accounts>.
> 
> I
> > 
> haven't tried to install it, but looking at the code my guess would
> be that you forgot to import QtQuick in Main.qml
> 
> Hope this helps,
> Michael
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> 
> iEYEARECAAYFAlUDE4UACgkQXJwWsxE5x7iQ7gCeI8ue8Sw2EvfTC5Gj8/yaR5t8
> PJMAn0QDSWqA1KQ6fLG6++ZZwNF/axq6
> =DcW8
> -----END PGP SIGNATURE-----
> 
> -- 
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp
                                          

--

Mailing list: https://launchpad.net/~ubuntu-phone

Post to     : ubuntu-phone@lists.launchpad.net

Unsubscribe : https://launchpad.net/~ubuntu-phone

More help   : https://help.launchpad.net/ListHelp



                                          

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp                               
          

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp                               
          

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp                               
          
-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp

Reply via email to