
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@gigwage/client
Advanced tools
Node client library for accessing the Gig Wage API.
NPM
npm i @gigwage/client
Yarn
yarn add @gigwage/client
Create a new Gig Wage client and use it to access APIs from the documentation. The client is used to automatically handle the complex API authentication.
import { createGigwageClient } from "@gigwage/client";
// consider using `dotenv` to pull in environmental variables from a .env file
import "dotenv/config";
// Create a new client
const client = createGigwageClient({
apiKey: process.env.GIGWAGE_API_KEY,
apiSecret: process.env.GIGWAGE_SECRET,
});
// Call endpoints from the Gig Wage API using this client.
const response = await client.get("/api/v1/contractors")
// Pass the payload for the second argument for POST and PATCH methods.
const postResponse = await client.post("/api/v1/contractors",{/** new contractor payload*/})
@gigwage/client
uses axios
under the hood, so all HTTP method responses will return the same format as an axios
response would.
try{
const response = await client.get("/api/v1/contractors")
response.data.contractors // array of contractors
}catch(e){
// error
}
Types are included with this package, but the individual API calls are to be included in a future release. For now, you can pass the expected response data type as a generic.
const response = await client.get<{contractors:[]}>("/api/v1/contractors")
Array.isArray(response.data.contractors) // true
FAQs
Node client library for accessing the Gig Wage API
We found that @gigwage/client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.