I am learning Ruby and need to wrap a third-party api with Ruby
API: https://www.mysite.com/api
Parameters:
user_id //a unique token to identify user
user_info //a JSON array of items with user info
Results:
result_message //success or failure message
group_id //group number that user belongs to
I need to implement a method(A) which calls the api and needs the required parameters for the api and also array of users as input.
I am not sure how to implement the method. Any thoughts? Thanks.