New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

5sim-api

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

5sim-api

A 5sim.net api.

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
10
decreased by-16.67%
Maintainers
0
Weekly downloads
 
Created
Source

5sim-api

GetSMS

NPM version NPM downloads

NPM

5sim-api - This is Node.js module that allows you to interact with the SMS services api

Description

The 5sim-api is a powerful and easy-to-use API client for interacting with the 5sim.net service. This library allows you to manage SMS numbers, check your balance, retrieve order history, and handle incoming SMS.

Features

  • Retrieve user balance
  • Buy activation and hosting numbers
  • Cancel or ban numbers
  • Wait for incoming SMS

Installation

To install the package, run:

npm install 5sim-api

Yarn:

yarn add 5sim-api

Usage

import { FiveSim } from '5sim-api';

const client = new FiveSim('your_api_key');

async function bootstrap() {
  // Get user balance
  const { balance } = await client.getUserBalance()
  console.log(balance)


  // Buy an activation number
  const { phone } = await client.buyActivationNumber()
  console.log(phone)
}
bootstrap()

Balance Payload

{
  id: number
  email: string
  vendor: string
  default_forwarding_number: number
  balance: number
  rating: number
  default_country: Country
  default_operator: Operator
  frozen_balance: number
}

Number Payload

{
  id: number
  phone: string
  operator: string
  product: string
  price: number
  status: StatusType
  expires: Date
  sms: null
  created_at: Date
  forwarding: boolean
  forwarding_number: null
  country: string
}

License

MIT License

Author

Purplex (github.com/HaloKodein)

Keywords

FAQs

Package last updated on 26 Sep 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc