title: Getting started with Withings API
body: <p>How i connect to my website and withing api.I send weight value to withing api and get body measurement value.And where i will get withing api code.</p>
  
  <pre><code>$config['withings_settings']['widgets'] = 'TRUE';
  $config['withings_settings']['enabled'] = 'TRUE';
  $config['withings_settings']['consumer_key'] = 'c65e4bff78de924609d8cce4dce837f2d931e0f13e8d9dbcbbdcf6f0c97cd';
  $config['withings_settings']['consumer_secret'] = 'ec75fc954c37b57c67f8bc0ee6f1226d78b22ded5f173e73fd331f78ef0';
  $config['withings_settings']['social_connection'] = 'TRUE';
  $config['withings_settings']['connections_redirect']= 'settings/connections/';
  $config['withings_settings']['archive'] = '';
  
  /* Sites */
  $config['withings_sites'][] = array(
      'url'       =&gt; 'http://withings.com/', 
      'module'    =&gt; 'withings', 
      'type'      =&gt; 'remote', 
      'title'     =&gt; 'Withings', 
      'favicon'   =&gt; 'http://withings.com/favicon.ico'
  );
  
  class OAuth_Provider_Withings extends OAuth_Provider {
  
      public $name = 'withings';
      public $uid_key = 'user_id';
  
      public function get_user_info(OAuth_Consumer $consumer, OAuth_Token $token)
      {
          // Create a new GET request with the required parameters
          $request = OAuth_Request::forge('resource', 'GET', 'http://wbsapi.withings.net/measure?action=getmeas&amp;userid=933243', array(
              'oauth_consumer_key'    =&gt; $consumer-&gt;key,
              'oauth_token'           =&gt; $token-&gt;access_token
          ));
  
          // Sign the request using the consumer and token
          $request-&gt;sign($this-&gt;signature, $consumer, $token);
  
          $activities = $request-&gt;execute();
  
          // Create a response from the request
          return $activities;
      }   
  
  }
  </code></pre>
  
  <p>I need get measurement response from withings whatever user submit a bodyweight.I need reference code for withing api and i also need step to access.Because i didnt use this before.</p>
  
  <p>Advance thanks.</p>