summaryrefslogtreecommitdiff
path: root/plugins/YammerImport/lib
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-09-22 17:53:38 -0700
committerBrion Vibber <brion@pobox.com>2010-09-28 07:44:23 -0700
commite8526b2e1f7ed269c84c93e72fda6c4f98e6d49b (patch)
tree58954644afc107626309c58f3072a7db6c87f159 /plugins/YammerImport/lib
parent472dab4a86c0ba365404b0994c3eb7e9979a80c2 (diff)
More doc comments on SN_YammerClient
Diffstat (limited to 'plugins/YammerImport/lib')
-rw-r--r--plugins/YammerImport/lib/sn_yammerclient.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/YammerImport/lib/sn_yammerclient.php b/plugins/YammerImport/lib/sn_yammerclient.php
index 8f9f1d413..830f9dabb 100644
--- a/plugins/YammerImport/lib/sn_yammerclient.php
+++ b/plugins/YammerImport/lib/sn_yammerclient.php
@@ -139,8 +139,11 @@ class SN_YammerClient
}
/**
+ * Encode a key-value pair for use in an authentication header.
+ *
* @param string $key
* @param string $val
+ * @return string
*/
protected function authHeaderChunk($key, $val)
{
@@ -148,6 +151,9 @@ class SN_YammerClient
}
/**
+ * Ask the Yammer server for a request token, which can be passed on
+ * to authorizeUrl() for the user to start the authentication process.
+ *
* @return array of oauth return data; should contain nice things
*/
public function requestToken()
@@ -162,6 +168,9 @@ class SN_YammerClient
}
/**
+ * Get a final access token from the verifier/PIN code provided to
+ * the user from Yammer's auth pages.
+ *
* @return array of oauth return data; should contain nice things
*/
public function accessToken($verifier)
@@ -175,7 +184,7 @@ class SN_YammerClient
}
/**
- * Give the URL to send users to to authorize a new app setup
+ * Give the URL to send users to to authorize a new app setup.
*
* @param string $token as returned from accessToken()
* @return string URL