Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to Create an OpenCage Geocode Connector in Axway's Integration Builder - Part 1 (ASSETS)
{"configuration":[{"internal":false,"hideFromConsole":true,"companyConfig":false,"displayOrder":1,"name":"Pagination Type","active":true,"description":"OpenCage Geocoder Pagination Type","type":"TEXTFIELD_32","groupControl":false,"resellerConfig":false,"key":"pagination.type","required":false},{"internal":false,"companyConfig":false,"defaultValue":"100","displayOrder":1,"active":true,"description":"OpenCage Geocoder Max Page Size (or limit)","type":"TEXTFIELD_32","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Max Page Size (or limit)","groupControl":false,"key":"pagination.max"},{"internal":false,"companyConfig":false,"defaultValue":"https://api.opencagedata.com/geocode","displayOrder":1,"active":true,"description":"OpenCage Geocoder Base URL","type":"TEXTFIELD_1000","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Base URL","groupControl":false,"key":"base.url"},{"internal":false,"hideFromConsole":true,"companyConfig":false,"displayOrder":11,"name":"Event Notification Signature Key","active":true,"description":"OpenCage Geocoder Event Notification Signature Key","type":"TEXTFIELD_128","groupControl":false,"resellerConfig":false,"key":"event.notification.signature.key","required":false},{"internal":false,"hideFromConsole":false,"companyConfig":false,"displayOrder":12,"name":"Event Notification Basic User Name","active":true,"description":"OpenCage Geocoder Event Notification Basic User Name","type":"TEXTFIELD_128","groupControl":false,"resellerConfig":false,"key":"event.notification.basic.username","required":false},{"internal":false,"hideFromConsole":false,"companyConfig":false,"displayOrder":13,"name":"Event Notification Basic Password","active":true,"description":"OpenCage Geocoder Event Notification Basic Password","type":"PASSWORD","groupControl":false,"resellerConfig":false,"key":"event.notification.basic.password","required":false},{"internal":false,"hideFromConsole":false,"companyConfig":false,"displayOrder":98,"name":"Default select fields","active":true,"description":"Generic map used to specify default fields for bulk download and GET /all requests. Each key should be the canonical objectName and values may be specified as a comma-delimited string or a list of strings","type":"TEXTAREA","groupControl":false,"resellerConfig":false,"key":"default.select.fields.map","required":false},{"internal":false,"companyConfig":false,"defaultValue":"true","displayOrder":99,"active":true,"description":"Used to enable/disable filtering of null values from the responses","type":"BOOLEAN","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Filter null values from the response","groupControl":false,"key":"filter.response.nulls"},{"internal":true,"hideFromConsole":true,"companyConfig":false,"displayOrder":100,"name":"Time of Getting Token or Performing Authentication","active":true,"description":"OpenCage Geocoder Time of Getting Token or Performing Authentication","type":"TEXTFIELD_32","groupControl":false,"resellerConfig":false,"key":"authentication.time","required":false}],"objects":[],"description":"Worldwide forward and reverse geocoding","cloneable":false,"extended":false,"bulkDownloadEnabled":false,"useModelsForMetadata":true,"trialAccount":false,"logo":"opencagegeocoder","hooks":[],"beta":false,"key":"opencagegeocoder","authentication":{"type":"custom"},"bulkUploadEnabled":false,"image":"http://console.cloud-elements.com/elements/images/elements/email-default.png","models":[],"active":true,"resources":[{"path":"/hubs/general/v{version}/{format}","vendorMethod":"GET","method":"GET","kind":"eb","response":{"contentType":"application/json"},"description":"GET a(n) /v{version}/{format}","model":{"transform":false,"name":"Response","swagger":{"Response":{"properties":{"thanks":{"type":"string"},"licenses":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"}}}},"rate":{"type":"object","properties":{"limit":{"type":"integer"},"reset":{"type":"integer"},"remaining":{"type":"integer"}}},"documentation":{"type":"string"},"stay_informed":{"type":"object","properties":{"twitter":{"type":"string"},"blog":{"type":"string"}}},"results":{"type":"array","items":{"type":"object","properties":{"components":{"type":"object"},"formatted":{"type":"string"},"confidence":{"type":"integer"},"bounds":{"type":"object","properties":{"southwest":{"$ref":"#/definitions/LatLng"},"northeast":{"$ref":"#/definitions/LatLng"}}},"annotations":{"type":"object"},"geometry":{"$ref":"#/definitions/LatLng"}}}},"status":{"type":"object","properties":{"code":{"type":"integer"},"message":{"type":"string"}}},"timestamp":{"type":"object","properties":{"created_unix":{"type":"integer"},"created_http":{"type":"string"}}},"total_results":{"type":"integer"}}}}},"type":"api","hooks":[],"modelMigrated":false,"parameters":[{"vendorType":"query","dataType":"string","name":"query","description":"string or lat,lng to be geocoded.","vendorDataType":"string","source":"request","type":"query","vendorName":"q","required":true},{"vendorType":"query","dataType":"string","name":"proximity","description":"lat,lng to bias results.","vendorDataType":"string","source":"request","type":"query","vendorName":"proximity","required":false},{"vendorType":"query","dataType":"boolean","name":"pretty","description":"when true results are pretty printed. Useful for debugging.","vendorDataType":"boolean","source":"request","type":"query","vendorName":"pretty","required":false},{"vendorType":"query","dataType":"boolean","name":"no_record","description":"when true query content is not logged.","vendorDataType":"boolean","source":"request","type":"query","vendorName":"no_record","required":false},{"vendorType":"query","dataType":"boolean","name":"no_dedupe","description":"when true results are not deduplicated.","vendorDataType":"boolean","source":"request","type":"query","vendorName":"no_dedupe","required":false},{"vendorType":"query","dataType":"boolean","name":"no_annotations","description":"when true annotations are not added to results.","vendorDataType":"boolean","source":"request","type":"query","vendorName":"no_annotations","required":false},{"vendorType":"query","dataType":"integer","name":"min_confidence","description":"integer from 1-10. Only results with at least this confidence are returned.","vendorDataType":"integer","source":"request","type":"query","vendorName":"min_confidence","required":false},{"vendorType":"query","dataType":"integer","name":"limit","description":"maximum number of results to return. Default is 10. Maximum is 100.","vendorDataType":"integer","source":"request","type":"query","vendorName":"limit","required":false},{"vendorType":"query","dataType":"string","name":"language","description":"an IETF format language code (ex: 'es' or 'pt-BR').","vendorDataType":"string","source":"request","type":"query","vendorName":"language","required":false},{"vendorType":"query","dataType":"string","name":"jsonp","description":"wraps the returned JSON with a function name.","vendorDataType":"string","source":"request","type":"query","vendorName":"jsonp","required":false},{"vendorType":"query","dataType":"string","name":"countrycode","description":"two letter code ISO 3166-1 Alpha 2 code to limit results to that country.","vendorDataType":"string","source":"request","type":"query","vendorName":"countrycode","required":false},{"vendorType":"query","dataType":"string","name":"bounds","description":"four coordinate points forming the south-west and north-east corners of a bounding box (min long, min lat, max long, max lat).","vendorDataType":"string","source":"request","type":"query","vendorName":"bounds","required":false},{"vendorType":"query","dataType":"boolean","name":"add_request","description":"if true the request is included in the response.","vendorDataType":"boolean","source":"request","type":"query","vendorName":"add_request","required":false},{"vendorType":"query","dataType":"boolean","name":"abbrv","description":"when true we attempt to abbreviate the formatted field in the response.","vendorDataType":"boolean","source":"request","type":"query","vendorName":"abbrv","required":false},{"vendorType":"query","dataType":"string","name":"key","description":"an application key.","vendorDataType":"string","source":"request","type":"query","vendorName":"key","required":true},{"vendorType":"path","dataType":"string","name":"format","description":"format of the response. One of 'json', 'xml' or 'map'.","vendorDataType":"string","source":"request","type":"path","vendorName":"format","required":true},{"vendorType":"path","dataType":"integer","name":"version","description":"API version.","vendorDataType":"integer","source":"request","type":"path","vendorName":"version","required":true}],"vendorPath":"/v{version}/{format}"}],"protocolType":"http","transformationsEnabled":true,"deleted":false,"hub":"general","typeOauth":false,"name":"OpenCage Geocoder","extendable":true,"parameters":[{"vendorType":"header","name":"application/json","source":"request","type":"value","vendorName":"Accept","required":false},{"vendorType":"header","name":"application/json","source":"request","type":"value","vendorName":"Content-Type","required":false}]}
{"id":25886,"name":"Test","userId":21107,"accountId":18281,"createdDate":"2019-05-02T22:12:19Z","steps":[{"id":162668,"onSuccess":[],"onFailure":[],"name":"Geocoder","type":"elementRequest","properties":{"api":"/v1/json","method":"GET","elementInstanceId":"${config.goecoder}","query":"${steps.prepareQuery.query}"}},{"id":162667,"onSuccess":["Geocoder"],"onFailure":[],"name":"prepareQuery","type":"script","properties":{"body":"let query={\n query:\"Boston\",\n key:\"xxxxxxxxxxxxxx\"\n}\n\ndone({query:query});"}}],"triggers":[{"id":23081,"onSuccess":["prepareQuery"],"onFailure":[],"type":"event","async":true,"name":"trigger","properties":{"elementInstanceId":"${config.input}"}}],"engine":"v3","active":true,"singleThreaded":false,"debugLoggingEnabled":true,"configuration":[{"id":45218,"key":"goecoder","name":"goecoder","type":"elementInstance","required":true},{"id":45217,"key":"input","name":"input","type":"elementInstance","required":true}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.