Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@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 4,536 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 0 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.