Patch up Matrix.HTTPAPI constructor

It now includes a refresh_token parameter, and has a documentation.
This commit is contained in:
Gergely Polonkai 2016-03-18 17:05:18 +01:00 committed by Gergely Polonkai
parent 4db2d5ebf2
commit 8d725d9f34
1 changed files with 12 additions and 2 deletions

View File

@ -126,10 +126,20 @@ public class Matrix.HTTPAPI : GLib.Object, Matrix.API {
}
}
/**
* Create a new MatrixHTTPAPI object.
*
* @param base_url the base URL of the homeserver to use
* @param token an access token to use
* @param refresh_token a refresh token to use
* @return a new MatrixHTTPAPI object
*/
protected
HTTPAPI(string base_url, string? token = null)
HTTPAPI(string base_url, string? token = null, string? refresh_token = null)
{
Object(base_url : base_url, token : token);
Object(base_url : base_url,
token : token,
refresh_token : refresh_token);
_soup_session.ssl_strict = true;
}