def create_subscription(opts)
      resp = raw_post make_subscription_url(opts.merge({:use_subscription_id => true})), EMPTY_BODY, make_headers(opts)
      [resp.status, extract_response_body(resp)]
    end
def create_subscription(opts)
      resp = raw_post make_subscription_url(opts.merge({:use_subscription_id => true})), EMPTY_BODY, make_headers(opts)
      [resp.status, extract_response_body(resp)]
    end
Creates a notification subscription

 @note You must check the HTTP response code to check the status of the request to add a subscription.  See {https://wiki.fitbit.com/display/API/Fitbit+Subscriptions+API} for information about what the codes mean.

 @param [Hash] opts The notification subscription data
 @option opts [Symbol] :type The type of subscription (valid
   values are :activities, :foods, :sleep, :body, and :all). REQUIRED
 @option opts [Integer, String] :subscriptionId The subscription id

 @return [Integer, Hash] An array containing the HTTP response code and
   a hash containing confirmation information for the subscription.
 @since v0.4.0