All Projects ā†’ SwapnilSoni1999 ā†’ messages-web

SwapnilSoni1999 / messages-web

Licence: other
šŸ“± SMS gateway using your own phone!

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to messages-web

jasmin-web-panel
šŸ“Ø Jasmin Web Panel for Jasmin SMS Gateway
Stars: āœ­ 33 (-2.94%)
Mutual labels:  sms-api, sms-gateway
sms
Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5(Updated to work with Laravel 5.5).Currently supported Gateways Clickatell, MVaayoo, Gupshup, SmsAchariya, SmsCountry, SmsLane, Nexmo, Mocker / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.
Stars: āœ­ 41 (+20.59%)
Mutual labels:  sms-api, sms-gateway
pindo-cli
A simple Command Line Interface that allows you to authenticate with the Pindo API.
Stars: āœ­ 32 (-5.88%)
Mutual labels:  sms-api, sms-gateway
e-voting-with-django
The Voting System web application using Django is a project that serves as the automated voting system of an organization or school. This system works like the common manual system of election voting system whereas this system must be populated by the list of the positions, candidates, and voters. This system can help a certain organization or sā€¦
Stars: āœ­ 54 (+58.82%)
Mutual labels:  sms-gateway
screenshot
A screenshot API to convert web to image or PDF. Supports desktop and mobile views.
Stars: āœ­ 108 (+217.65%)
Mutual labels:  puppeteer
facebook-login-for-robots
Facebook Login for šŸ¤– robots
Stars: āœ­ 41 (+20.59%)
Mutual labels:  puppeteer
naos
šŸ“‰ Uptime and error monitoring CLI
Stars: āœ­ 30 (-11.76%)
Mutual labels:  puppeteer
site-audit-seo
Web service and CLI tool for SEO site audit: crawl site, lighthouse all pages, view public reports in browser. Also output to console, json, csv, xlsx, Google Drive.
Stars: āœ­ 91 (+167.65%)
Mutual labels:  puppeteer
lab-assistant
A tool to measure performance deltas between two versions of a site
Stars: āœ­ 20 (-41.18%)
Mutual labels:  puppeteer
pappet
A command-line tool to crawl websites using puppeteer.
Stars: āœ­ 95 (+179.41%)
Mutual labels:  puppeteer
opensea-scraper
Scrapes nft floor prices and additional information from opensea. Used for https://nftfloorprice.info
Stars: āœ­ 129 (+279.41%)
Mutual labels:  puppeteer
FlareSolverrSharp
FlareSolverr .Net / Proxy server to bypass Cloudflare protection
Stars: āœ­ 62 (+82.35%)
Mutual labels:  puppeteer
php-puppeteer
PHP Wrapper of Google Chrome Puppeteer for PDF Generation
Stars: āœ­ 24 (-29.41%)
Mutual labels:  puppeteer
puppeteer-extensions
Convenience functions for the Puppeteer
Stars: āœ­ 26 (-23.53%)
Mutual labels:  puppeteer
docker-google-lighthouse-puppeteer
Google Lighthouse + Puppeteer / Docker Image
Stars: āœ­ 29 (-14.71%)
Mutual labels:  puppeteer
Puppeteer-IE
Headless Internet Explorer NodeJS API inspired by Puppeteer
Stars: āœ­ 72 (+111.76%)
Mutual labels:  puppeteer
energy-use-case-trading-client
Energy Use Case Web UI for Lition Trading Platform
Stars: āœ­ 23 (-32.35%)
Mutual labels:  puppeteer
puppeteer-report
Convert HTML to PDF by Puppeteer with support of adding a custom header, footer, and page number
Stars: āœ­ 90 (+164.71%)
Mutual labels:  puppeteer
screenie-server
A Node server with a pool of Puppeteer (Chrome headless) instances for scalable screenshot generation.
Stars: āœ­ 19 (-44.12%)
Mutual labels:  puppeteer
puppeteer-email
Email automation driven by headless chrome.
Stars: āœ­ 135 (+297.06%)
Mutual labels:  puppeteer

Google Messages Cli Client

What is this?

  • this is a Google Messages Client library to send message with a backend .eg. with express to send otp messages. This module uses your own number to work as a sms gateway api and you can send message to other person with your own number.

How to use

  1. install the package from npm
npm install messages-web
  1. Use it
  • Without credentials
const { default: MessagesClient } = require('messages-web')
const fs = require('fs')

const client = new MessagesClient()

client.on('qr-code', (base64Image) => {
    // example code to save image
    fs.writeFileSync('qr.jpg', base64Image.replace(/^data:image\/png;base64,/, ""), { encoding: 'base64' })
    // your code
})

client.on('authenticated', async (service) => {
    const inbox = service.getInbox()
    const credentials = await client.getCredentials()
    fs.writeFileSync('credentials.json', JSON.stringify(credentials, null, '\t'))
    await client.quit()
})

Then you can use credentials.json file to login

  • With credentials
const { default: MessagesClient } = require('messages-web')

const credentials = MessagesClient.loadCredentialFile('credentials.json')
const client = new MessagesClient({ credentials })

client.on('authenticated', async (service) => {
    const inbox = await service.getInbox()
    console.log('Inbox', inbox)
    await client.quit()
})
  1. send message
const { default: MessagesClient } = require('messages-web')

const credentials = MessagesClient.loadCredentialFile('credentials.json')
const client = new MessagesClient({ credentials })

client.on('authenticated', async (service) => {
    console.log('Sending message...')
    await service.sendMessage('+91987654321', 'Test message from SMS Client.') 
    console.log('Done!')
    await client.quit()
})

Note: sendMessage takes first arg as number with countryCode + Number second arg as TextMessage

  • Examples are given here.

Todos

  • add pagination in getInbox
  • add sendMessage in Service
  • add public method in client to save credentials to a file
  • sendMessage: parse to var to check if country code is included or not
  • Rewrite docs with proper details
  • detect if phone is not connected
  • detect if web client is open in another browser or not

License

ISC - Swapnil Soni Ā©

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].