Four Square Settings

Returns a setting for the acting user.

Figure 1a. Instantiate Settings
$settings = eden('foursquare')->settings($_SESSION['oauth_token']);
Figure 1b. Usage: Retrieve the settings of the acting user.
$settings->getSettings();
Figure 1c. Usage: Change a setting for the given user.
$settings->changeSettings('[SETTING_ID]', '[BOOLEAN]');
Figure 1d. Settings Methods
Method Arguments Returns Description
$settings->getSettings(); none Eden_Foursquare_Settings Returns the settings of the acting user.
$settings->changeSettings($settingId, $value);
  1. string
  2. - Name of setting to change, sendToTwitter, sendMayorshipsToTwitter, sendBadgesToTwitter, sendToFacebook, sendMayorshipsToFacebook, sendBadgesToFacebook, receivePings, receiveCommentPings.
  3. integer
  4. - 1 for true, and 0 for false.
array Change a setting for the given user.

© 2012 Openovate Labs. All rights reserved.