with Blazemeter and Livespace?
Creates a new project in a specific workspace. See the documentation
List projects from a specified workspace in BlazeMeter. See the documentation
List all workspaces associated with the specified account. See the documentation
The BlazeMeter API allows you to automate performance testing by integrating with Pipedream's serverless platform. You can trigger tests, fetch test results, and manage your testing environment programmatically. With Pipedream, connecting BlazeMeter with other apps and services streamlines performance data analysis and alerts, enhancing continuous integration and deployment (CI/CD) pipelines.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
blazemeter: {
type: "app",
app: "blazemeter",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://a.blazemeter.com/api/v4/user`,
auth: {
username: `${this.blazemeter.$auth.api_key}`,
password: `${this.blazemeter.$auth.api_secret}`,
},
})
},
})
import { axios } from "@pipedream/platform";
import crypto from "crypto";
export default defineComponent({
props: {
livespace: {
type: "app",
app: "livespace",
}
},
async run({steps, $}) {
const concatenatedString = this.livespace.$auth.api_key
+ this.livespace.$auth.token
+ this.livespace.$auth.api_secret;
const sha1Hash = crypto.createHash('sha1')
.update(concatenatedString)
.digest('hex');
const data = {
"_api_auth": `key`,
"_api_key": `${this.livespace.$auth.api_key}`,
"_api_sha": `${sha1Hash}`,
"_api_session": `${this.livespace.$auth.session_id}`,
}
return await axios($, {
method: "post",
url: `https://${this.livespace.$auth.subdomain}.livespace.io/api/public/json/Default/User_getInfo`,
data,
})
},
})