Get a List of China Banks
Returns a Collection of ChinaBankResponse objects
require 'uri'
require 'net/http'
url = URI("https://api.opentransact.com/v1/china-banks")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["authorization"] = "Bearer #{API_KEY}"
response = http.request(request)
puts response.read_body
curl --request GET \
--url https://api.opentransact.com/v1/china-banks \
--header 'authorization: Bearer $API_KEY'
Query List of China Banks
Banks where either the name or routing_number attribute matches the search term will be returned. Returns a Collection of ChinaBankResponse objects
require 'uri'
require 'net/http'
url = URI("https://api.opentransact.com/v1/china-banks?filter[query]=#{searchterm}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["authorization"] = "Bearer #{API_KEY}"
response = http.request(request)
puts response.read_body
curl --request GET \
--url https://api.opentransact.com/v1/china-banks?filter[query]=$searchterm \
--header 'authorization: Bearer $API_KEY'