0
我正在使用gem'devise_token_auth'gem'httparty'。如何在Rails中使用HTTParty gem時獲取http頭文件?
後後行動,我想從響應得到FF標題:
例子: HTTParty.post( 「/ auth /中sign_in」,@options)
我需要:
access_token: response.headers['access-token'],
client: response.headers['client'],
expiry: response.headers['expiry'],
token_type: response.headers['token-type'],
uid: response.headers['uid']
請幫忙!