
Security News
vlt Launches Real-Time Dependency Analysis Powered by Socket
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
@wireapp/api-client
Advanced tools
This repository is part of the source code of Wire. You can find more information at wire.com or by contacting opensource@wire.com.
You can find the published source code at github.com/wireapp.
For licensing information, see the attached LICENSE file and the list of third-party licenses at wire.com/legal/licenses/.
Wire for Web's API client.
yarn
yarn start
yarn add @wireapp/api-client
import {APIClient} from '@wireapp/api-client';
import {LoginData} from '@wireapp/api-client/lib/auth/';
import {ClientType} from '@wireapp/api-client/lib/client';
const credentials: LoginData = {
clientType: ClientType.TEMPORARY,
email: 'user@wire.com',
password: 'top-secret',
};
const apiClient = new APIClient();
apiClient.login(credentials);
import {APIClient} from '@wireapp/api-client';
import {Config} from '@wireapp/api-client/lib/Config';
import {LoginData} from '@wireapp/api-client/lib/auth/';
import {ClientType} from '@wireapp/api-client/lib/client';
const credentials: LoginData = {
clientType: ClientType.TEMPORARY,
email: 'user@wire.com',
password: 'top-secret',
};
const apiConfig: Config = {
urls: {
name: 'My custom backend',
rest: 'https://backend-rest.domain.com',
ws: 'wss://backend-websocket.domain.com',
},
};
const apiClient = new APIClient(apiConfig);
apiClient.login(credentials);
Browser
Node.js
Bash
#!/bin/bash
EMAIL="name@email.com"
PASSWORD="password"
node index.js --e="$EMAIL" --p="$PASSWORD"
Node
npm run dist
node index.js --e="name@email.com" --p="password"
FAQs
Wire API Client to send and receive data.
The npm package @wireapp/api-client receives a total of 2,198 weekly downloads. As such, @wireapp/api-client popularity was classified as popular.
We found that @wireapp/api-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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.
Security News
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.