2
* Copyright (C) 2012 Canonical, Inc
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19
* David King <david.king@canonical.com>
22
public class IdenticaPlugin : Ap.OAuthPlugin {
23
public IdenticaPlugin (Ag.Account account) {
24
Object (account: account);
29
var oauth_params = new HashTable<string, GLib.Value?> (str_hash, null);
30
oauth_params.insert ("ConsumerKey", Config.IDENTICA_CONSUMER_KEY);
31
oauth_params.insert ("ConsumerSecret",
32
Config.IDENTICA_CONSUMER_SECRET);
33
set_oauth_parameters (oauth_params);
35
set_mechanism (Ap.OAuthMechanism.HMAC_SHA1);
39
public GLib.Type ap_module_get_object_type ()
41
return typeof (IdenticaPlugin);