Implement get_3pids

This commit is contained in:
Gergely Polonkai 2016-01-15 20:01:28 +01:00
parent 8b332eaaea
commit 83e7152c87

View File

@ -2287,6 +2287,19 @@ i_token_refresh(MatrixAPI *api,
FALSE, error); FALSE, error);
} }
static void
i_get_3pids(MatrixAPI *api,
MatrixAPICallback callback,
gpointer user_data,
GError **error)
{
_send(MATRIX_HTTP_API(api),
callback, user_data,
CALL_API,
"GET", "account/3pid", NULL, NULL, NULL, NULL,
FALSE, error);
}
static void static void
matrix_http_api_matrix_api_init(MatrixAPIInterface *iface) matrix_http_api_matrix_api_init(MatrixAPIInterface *iface)
{ {
@ -2364,7 +2377,7 @@ matrix_http_api_matrix_api_init(MatrixAPIInterface *iface)
iface->token_refresh = i_token_refresh; iface->token_refresh = i_token_refresh;
/* User data */ /* User data */
iface->get_3pids = NULL; iface->get_3pids = i_get_3pids;
iface->add_3pid = NULL; iface->add_3pid = NULL;
iface->change_password = NULL; iface->change_password = NULL;
iface->get_profile = NULL; iface->get_profile = NULL;