
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
sfrmobile-api
Advanced tools
Support non-officiel de l'API mobile de SFR/RED. Les identifiants utilisés sont les mêmes que pour se connecter sur le site de l'opérateur.
Kind: global class
Promise.<Consumption>Promise.<ConsumptionNationale>Promise.<Facturation>Promise.<Stream>Promise.<FacturationFixe>Promise.<Stream>Promise.<InfosClientFixe>Promise.<FicheMonCompte>Promise.<Dashboard>Promise.<InfoPersonnelles>Promise.<NotificationsCount>Promise.<{notifications: Array.<Notification>}>Promise.<Equipement>Promise.<OptionDetail>Promise.<OptionsCatalog>Promise.<OptionsCatalogDetail>Promise.<OptionsList>Promise.<EquipementDetail>Promise.<Parc>Promise.<AchatsAbonnements>Promise.<OptionsAchat>Promise.<OTPSMSResponse>Promise.<OffreAmes>Promise.<LoginResponse>Promise.<VerifyUsernameResponse>Promise.<InfosTerminalIMEI>Promise.<InfosTerminal>Promise.<Array.<InfosTerminal>>| Param | Type | Description |
|---|---|---|
| casauthenticationtoken | string | Jeton temporaire d'authentification |
Example
const { SfrMobile } = require('sfrmobile-api')
SfrMobile.login(username, password).then(({ token }) => {
const user = new SfrMobile(token)
// Votre code
})
Promise.<Consumption>Consommation générale de la ligne
Kind: instance method of SfrMobile
| Param | Type | Description |
|---|---|---|
| line | string | MSISDN de la ligne à sélectionner |
Promise.<ConsumptionNationale>Historique de la consommation sur le territoire national
Kind: instance method of SfrMobile
| Param | Description |
|---|---|
| line | MSISDN de la ligne à sélectionner |
Promise.<Facturation>Historique de facturation d'une ligne mobile
Kind: instance method of SfrMobile
| Param | Type | Default | Description |
|---|---|---|---|
| line | string | MSISDN de la ligne mobile à sélectionner | |
| duration | number | 6 | Nombre de périodes de facturation (6,12,18,24) |
Promise.<Stream>Télécharger la facture d'une ligne mobile
Kind: instance method of SfrMobile
| Param | Type | Default | Description |
|---|---|---|---|
| line | string | MSISDN de la ligne mobile à sélectionner | |
| numeroFacture | string | Identifiant de la facture de la ligne mobile | |
| fadet | boolean | false | Facture détaillée |
Promise.<FacturationFixe>Historique de facturation d'une ligne fixe
Kind: instance method of SfrMobile
| Param | Type | Default | Description |
|---|---|---|---|
| line | string | NDI de la ligne fixe | |
| duration | number | 6 | Nombre de périodes de facturation (6,12,18,24) |
Promise.<Stream>Télécharger la facture d'une ligne fixe
Kind: instance method of SfrMobile
| Param | Type | Description |
|---|---|---|
| line | string | NDI de la ligne fixe |
| idFact | string | Identifiant de la facture de la ligne fixe |
Promise.<InfosClientFixe>Détails de la ligne fixe
Kind: instance method of SfrMobile
| Param | Type | Description |
|---|---|---|
| line | string | undefined | NDI de la ligne fixe |
Promise.<FicheMonCompte>Fiche descriptive du compte de l'utilisateur courant
Kind: instance method of SfrMobile
Promise.<Dashboard>Informations générales de la ligne
Kind: instance method of SfrMobile
| Param | Description |
|---|---|
| line | MSISDN de la ligne à sélectionner |
Promise.<InfoPersonnelles>Informations personnelles concernant la ligne
Kind: instance method of SfrMobile
| Param | Description |
|---|---|
| line | MSISDN de la ligne à sélectionner |
Promise.<NotificationsCount>Nombre de notifications de l'utilisateur
Kind: instance method of SfrMobile
Promise.<{notifications: Array.<Notification>}>Lister les notifications de l'utilisateur
Kind: instance method of SfrMobile
Promise.<Equipement>Liste des équipements mis à disposition pour une ligne
Kind: instance method of SfrMobile
| Param | Type | Description |
|---|---|---|
| line | string | MSISDN de la ligne à sélectionner |
| universe | Universe | string | SFR/RED |
Promise.<OptionDetail>Détail d'une option souscrite
Kind: instance method of SfrMobile
| Param | Type | Description |
|---|---|---|
| line | string | MSISDN de la ligne à sélectionner |
| universe | Universe | string | SFR/RED |
| environment | Environment | string | Type de ligne |
| option | string | Identifiant de l'option |
Promise.<OptionsCatalog>Catalogue des catégories d'options disponibles pour une ligne
Kind: instance method of SfrMobile
| Param | Type | Description |
|---|---|---|
| line | string | MSISDN de la ligne à sélectionner |
Promise.<OptionsCatalogDetail>Catalogue détaillé des catégories d'options disponibles pour une ligne
Kind: instance method of SfrMobile
| Param | Type | Description |
|---|---|---|
| line | string | MSISDN de la ligne à sélectionner |
Promise.<OptionsList>Lister les options disponibles dans une catégorie
Kind: instance method of SfrMobile
| Param | Type | Description |
|---|---|---|
| line | string | MSISDN de la ligne à sélectionner |
| category | string | Catégorie d'option |
Promise.<EquipementDetail>Obtenir la description complète de l'équipement
Kind: instance method of SfrMobile
| Param | Type | Description |
|---|---|---|
| line | string | MSISDN de la ligne à sélectionner |
| optionCode | string | Identifiant de l'option d'équipement |
| universe | Universe | string | SFR/RED |
Promise.<Parc>Détails de l'offre d'une ligne
Kind: instance method of SfrMobile
| Param | Type | Description |
|---|---|---|
| line | string | MSISDN de la ligne à sélectionner |
| universe | Universe | string | SFR/RED |
| environment | Environment | string | Type de ligne |
Promise.<AchatsAbonnements>Liste des achats et abonnements (hors forfait) sur la ligne
Kind: instance method of SfrMobile
| Param | Description |
|---|---|
| line | MSISDN de la ligne à sélectionner |
Promise.<OptionsAchat>Droits d'achat sur la ligne (Stores, jeux, ...)
Kind: instance method of SfrMobile
| Param | Description |
|---|---|
| line | MSISDN de la ligne à sélectionner |
Mettre à jour les droits d'achat sur la ligne
Kind: instance method of SfrMobile
| Param | Type | Description |
|---|---|---|
| selectedLine | string | MSISDN de la ligne à sélectionner |
| otp | string | Code à usage unique obtenu avec getOTPSMS() |
| data | OptionsAchat | Droits d'achats à permuter |
Promise.<OTPSMSResponse>Obtenir un code à usage unique pour effectuer une opération
Kind: instance method of SfrMobile
| Param | Description |
|---|---|
| line | MSISDN de la ligne à sélectionner |
Promise.<OffreAmes>Informations sur les remises Multi-Pack
Kind: instance method of SfrMobile
| Param | Description |
|---|---|
| line | MSISDN de la ligne à sélectionner |
Promise.<LoginResponse>Obtenir un jeton d'authentification auprès du CAS de SFR
Kind: static method of SfrMobile
| Param | Type | Default | Description |
|---|---|---|---|
| username | string | Identifiant du compte | |
| password | string | Mot de passe du compte | |
| duration | number | 86400 | Durée de validité du jeton demandé en secondes |
| universe | Universe | SFR/RED |
Promise.<VerifyUsernameResponse>Tester la validité d'un nom d'utilisateur
Kind: static method of SfrMobile
| Param | Type | Description |
|---|---|---|
| username | string | Nom d'utilisateur à tester |
| universe | Universe | SFR/RED |
Promise.<InfosTerminalIMEI>Description du terminal associé à un IMEI
Kind: static method of SfrMobile
| Param | Type | Description |
|---|---|---|
| imei | string | Identifiant du terminal mobile |
Promise.<InfosTerminal>Description du terminal associé à un identifiant
Kind: static method of SfrMobile
| Param | Type | Description |
|---|---|---|
| id | string | Identifiant |
| type | 'BACARAT' | 'TAC' | Type d'identifiant |
Promise.<Array.<InfosTerminal>>Description des terminaux associés à leur identifiant
Kind: static method of SfrMobile
| Param | Type | Description |
|---|---|---|
| ids | Array.<string> | Identifiants |
| type | 'BACARAT' | 'TAC' | Type d'identifiant |
FAQs
Client de l'API mobile SFR/RED
We found that sfrmobile-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Google’s UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.