It seems that there is no Customer model in the ruby SDK, so I can’t retreive customers informations
Sorry for the delay. Have no fear, we should be able to work through this. Though we are not activity building on the Ruby SDK, you should be able to interact with the API in any language. I have not worked with ruby much at all but i have tried to stub out an API call to fetch the consumer data. The one thing you will have to is to have your api key available to use where you implement this call. Looking forward to working through this and making it work
in the import require 'uri' require 'net/http' url = URI("https://api.moltin.com/v2/customers?page[offset]=0&page[limit]=10&sort=desc&filter=") http = Net::HTTP.new(url.host, url.port) request = Net::HTTP::Get.new(url) request["Bearer"] = '6a4ba945b00f6af8593939af4c7e99a4354dc7d3' request["Content-Type"] = 'application/json' response = http.request(request) puts response.read_body
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.