def api_call(method, params = {}, force_session_call = false)
      raise RequireSessionScopeError.new('This API call requires session scope') if force_session_call and application_scope?

      uri = build_uri(method, params)
      Net::HTTP.get_response(uri)
    end
def api_call(method, params = {}, force_session_call = false)
      raise RequireSessionScopeError.new('This API call requires session scope') if force_session_call and application_scope?

      uri = build_uri(method, params)
      Net::HTTP.get_response(uri)
    end
Performs API call to Odnoklassniki

 @example Performs API call in current scope
   school_friend = SchoolFriend::Session.new
   school_friend.api_call('widget.getWidgets', wids: 'mobile-header,mobile-footer') # Net::HTTPResponse

 @example Force performs API call in session scope
   school_friend = SchoolFriend::Session.new
   school_friend.api_call('widget.getWidgets', {wids: 'mobile-header,mobile-footer'}, true) # SchoolFriend::Session::RequireSessionScopeError


 @param [String] method API method
 @param [Hash] params params which should be sent to portal
 @param [FalseClass, TrueClass] force_session_call says if this call should be performed in session scope
 @return [Net::HTTPResponse]