You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: add_member.rb
    path of file: ./repos/Twitter-API-v2-sample-code/Manage-Lists/Manage-List-Members
    
    the code of the file until where you have to start completion: # This script implements the PIN-based OAuth flow to obtain access tokens for a user context request
require 'oauth'
require 'json'
require 'typhoeus'
require 'oauth/request_proxy/typhoeus_request'

# The code below sets the consumer key and secret from your
    
def add_member(url, oauth_params)
	options = {
	    :method => :post,
	    headers: {
	     	"User-Agent": "v2addMemberRuby",
        "content-type": "application/json"
	    },
	    body: JSON.dump(@user_id)
	}
	request = Typhoeus::Request.new(url, options)
	oauth_helper = OAuth::Client::Helper.new(request, oauth_params.merge(:request_uri => url))
	request.options[:headers].merge!({"Authorization" => oauth_helper.header}) # Signs the request
	response = request.run

	return response
end