Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

5sim-api

A 5sim.net api.

5sim5sim.netsmssms-api
Published19 Sept 2024
Direct dependencies7
Transitive dependenciesNot calculated

README

Current package documentation

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)

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 7

Native requirements
7 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
axios
Environment
{
  "local_name": "axios",
  "alias": false,
  "peer_metadata": null
}
^1.7.7runtime
@types/bun
Environment
{
  "local_name": "@types/bun",
  "alias": false,
  "peer_metadata": null
}
^1.0.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.2.2development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^22.5.5development
@types/axios
Environment
{
  "local_name": "@types/axios",
  "alias": false,
  "peer_metadata": null
}
^0.14.0development
@biomejs/biome
Environment
{
  "local_name": "@biomejs/biome",
  "alias": false,
  "peer_metadata": null
}
^1.9.2development
bun-plugin-dts
Environment
{
  "local_name": "bun-plugin-dts",
  "alias": false,
  "peer_metadata": null
}
^0.2.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "b101c268e6940ab15d78826652c3bd4961e17b1e",
  "tarball": "https://registry.npmjs.org/5sim-api/-/5sim-api-1.0.0.tgz",
  "fileCount": 5,
  "integrity": "sha512-RWiojU3yKcoRs6pWPPrLltWby/wDx50TVGGu3XBO/Qrv7v9FdxyJT7Nl9m55bqdU1RHROVs4994pc33Oj4EU6A==",
  "signatures": [
    {
      "sig": "MEUCICKUN11hcWhoGcI6BwsmXVyu/nnb+ZiRecqbH5hOYBNDAiEA13933xtO8FrY2FqSWi+oijzR26anD1BxnN1ibYHvDyM=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 49255
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:38 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:df015f12c6bfdd24eebd7598ff0ebdc66afb2bf0de10b706b2e8de2b568f47b1

Other collected versions

1.0.226 Sept1.0.119 SeptView all collected versions →