Catalog npm
Back to packageRELEASE DETAILS

1.0.1

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": "55ab096be16de3e44857a9346e631b3be754daf5",
  "tarball": "https://registry.npmjs.org/5sim-api/-/5sim-api-1.0.1.tgz",
  "fileCount": 5,
  "integrity": "sha512-PBInuBYcTeBQdnByCKuagowrBYm/E5nySTFC9xcZ6f0mP0yLv3vHERh/+yj5NbD1tW9z4ij3DwgZWIZC8uW/dA==",
  "signatures": [
    {
      "sig": "MEQCIEwVdGqGi0QFHMHpha4/Wky1BntsY8k0H6vZcWS085JEAiA6stNFWRH1ZfTNM6pvS8D7yXQ7kce9P0+fCCrRg92b1g==",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 50695
}

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:83d04b7086a528d89fdc44fc9fb4955a28751a34a5451c45c101c4d42cf9d44e

Other collected versions

1.0.226 Sept1.0.019 SeptView all collected versions →