<=
require 'uri' require 'net/http' require 'openssl' url = URI("https://transit.hereapi.com/v8/departures?REPLACE_BOARDOPTIONS&time=REPLACE_THIS_VALUE&REPLACE_MODES&maxPerBoard=REPLACE_THIS_VALUE&maxPerTransport=REPLACE_THIS_VALUE&sort=REPLACE_THIS_VALUE×pan=REPLACE_THIS_VALUE&lang=REPLACE_THIS_VALUE") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer REPLACE_BEARER_TOKEN' request["accept"] = 'application/json' response = http.request(request) puts response.read_body
</script>
<=
apiVersion: apiconnect.ibm.com/v1beta1
kind: API metadata: name: example-api namespace: <namespace> spec: definition: configMap: example-configmap share: apim: credentialsSecret: apim-credentials providerOrg: main-demo </script>
No hay comentarios:
Publicar un comentario
Gracias por participar en mi pagina