{"id":22096965,"url":"https://github.com/pitops/infobip-js","last_synced_at":"2025-03-24T01:18:37.723Z","repository":{"id":57136988,"uuid":"248771048","full_name":"pitops/infobip-js","owner":"pitops","description":"This is a javascript client that covers partially the API of Infobip for sending SMS.","archived":false,"fork":false,"pushed_at":"2020-03-20T14:13:17.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T04:05:29.206Z","etag":null,"topics":["infobip-api","infobip-api-wrapper","sms-api","sms-messages"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pitops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-20T14:07:58.000Z","updated_at":"2020-03-20T14:13:19.000Z","dependencies_parsed_at":"2022-09-01T04:01:04.470Z","dependency_job_id":null,"html_url":"https://github.com/pitops/infobip-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitops%2Finfobip-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitops%2Finfobip-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitops%2Finfobip-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitops%2Finfobip-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pitops","download_url":"https://codeload.github.com/pitops/infobip-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245191590,"owners_count":20575250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["infobip-api","infobip-api-wrapper","sms-api","sms-messages"],"created_at":"2024-12-01T04:13:41.268Z","updated_at":"2025-03-24T01:18:37.704Z","avatar_url":"https://github.com/pitops.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Infobip-JS\n\nThis is a javascript client that covers **partially** the API of [Infobip](https://infobip.com) for sending SMS.\n\n### Features\n\n- Send single message to single number\n- Send single message to multiple numbers\n- Preview SMS cost and count\n- Support for transliteration\n- Supports **only** username/password authentication mechanism\n\n### Install\n\n```javascript\nnpm install @pitops/infobip-js\n```\n\n### How to use\n\n```javascript\nconst InfobipAPI = require('infobip-js')\n\n// generate client\nconst InfoBip = new InfobipAPI({\n  username: 'username',\n  password: 'password'\n})\n\ntry {\n  // ** Send single message\n  // SENDER_ID is not supported in all countries\n  const res = await InfoBip.from('SENDER_ID')\n    .to('99812723737')\n    .message('Test')\n    .send()\n  console.log(res)\n} catch (err) {\n  console.error(err)\n}\n\ntry {\n  // ** Send message to multiple destinations\n  const res = await InfoBip.from('SENDER_ID')\n    .to(['99812723737', '9999383883'])\n    .message('Test')\n    .send('sms-multi')\n  console.log(res)\n} catch (err) {\n  console.error(err)\n}\n\ntry {\n  // ** Get cost estimation on a transliterated message\n  const res = await InfoBip.message('Test 2')\n    .transliteration('GREEK')\n    .preview()\n  console.log(res)\n} catch (err) {\n  console.error(err)\n}\n```\n\n### Contributions Welcome\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpitops%2Finfobip-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpitops%2Finfobip-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpitops%2Finfobip-js/lists"}