line/line-bot-sdk-ruby

Support Get user's language

tkgauri opened this issue · 1 comments

toduq commented

This code would work correctly. No modification needed.

response = client.get_profile(event['source']['userId'])
profile = JSON.parse(response.read_body)
language = profile['language']