Register app url

This commit is contained in:
bleakgrey 2018-04-21 12:56:55 +03:00
parent 7341a591d1
commit 01e42cb06b
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ public class Tootle.AccountManager : Object{
public Soup.Message request_client_tokens(){ public Soup.Message request_client_tokens(){
var pars = "?client_name=Tootle"; var pars = "?client_name=Tootle";
pars += "&redirect_uris=urn:ietf:wg:oauth:2.0:oob"; pars += "&redirect_uris=urn:ietf:wg:oauth:2.0:oob";
pars += "&website=https://github.com/bleakgrey/tootle";
pars += "&scopes=read%20write%20follow"; pars += "&scopes=read%20write%20follow";
var msg = new Soup.Message("POST", settings.instance_url + "/api/v1/apps" + pars); var msg = new Soup.Message("POST", settings.instance_url + "/api/v1/apps" + pars);