This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// environments to define | |
// endpoint -> https://api.ovh.com/1.0 | |
// applicationKey | |
// applicationSecret | |
// consumerKey | |
// pre request script | |
pm.request.headers.add({ | |
key: 'X-Ovh-Application', | |
value: pm.environment.get('applicationKey') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
import WebSocket from 'websocket' | |
const tenant = 'user_xxx' | |
const namespace = 'pulsar_xxx' | |
const topic = 'sometopic' | |
const token = process.env.PULSAR_TOKEN | |
const producerURL = `wss://c2-pulsar-clevercloud-customers.services.clever-cloud.com:2000/ws/v2/producer/persistent/${tenant}/${namespace}/${topic}?token=${token}&producerName=toto` | |
const msg = { |
OlderNewer