Proxy-seller

Liens d'action

Obtenir des liens

GEThttps://mobile.proxy-seller.com/api/v1/modems/{modemId}/links

Ce point renvoie des liens directs pour redémarrer, obtenir l'IP et obtenir l'état du modem.

Exemple

https://mobile.proxy-seller.com/api/v1/modems/63c234098746e15666325bf9f/links

Exemple avec domainId

https://mobile.proxy-seller.com/api/v1/modems/63c234098746e15666325bf9f/links?domainId=1asdbu1kb23

Paramètres du chemin d'accès

Nom

Type

Description

modemId*

Chaîne

identifiant du modem

En-têtes

Nom

Valeur

Content-Type

application/json

Autorisation*

<YOUR_API_TOKEN>

Paramètres d'interrogation

Nom

Type

Description

domainId

Chaîne

l'identifiant de votre domaine costom

Réponse

{
    "reboot": "https://mobile.proxy-seller.com/c/modem/reboot/103790e5f286b193bedd3aee67bff18afb746e",
    "status": "https://mobile.proxy-seller.com/c/modem/status/103790e5f286b193bedd3aee67bff18afb746e",
    "ip": "https://mobile.proxy-seller.com/c/modem/ip/103790e5f286b193bedd3aee67bff18afb746e"
}
AUTHORIZATION_FAILED,
IP_AUTHORIZATION_FAILED,
HOST_USER_ID_AND_AUTH_DOES_NOT_MATCH
INVALID_MODEM, DOMAIN_NOT_FOUND

Exemple d'utilisation de liens :

https://mobile.proxy-seller.com/c/modem/ip/103790e5f286b193bedd3aee67bff18afb746e

Domaine du client

GEThttps://mobile.proxy-seller.com/api/v1/domains

Ce point renverra une liste de tous les noms de domaine que vous possédez.

Exemple

https://mobile.proxy-seller.com/api/v1/domains

En-têtes

Nom

Valeur

Content-Type

application/json

Autorisation*

<YOUR_API_TOKEN>

Réponse

[
  {
        "id": "63888a772bd6cd2bc8071515",
        "domain": "mobile.space",
        "useTls": true,
        "approved": true,
        "prioritized": false,
        "linkEnabled": true,
        "prefix": "/custom/"
  }
]
AUTHORIZATION_FAILED,
IP_AUTHORIZATION_FAILED

Obtenir le domaine

GEThttps://mobile.proxy-seller.com/api/v1/domains/{domainId}

Ce point renverra une liste de tous les noms de domaine que vous possédez.

Exemple

https://mobile.proxy-seller.com/api/v1/domains/63888a772bd6cd2bc8071515

Paramètres du chemin d'accès

Nom

Type

Description

domainId*

Chaîne

identifiant du domaine

En-têtes

Nom

Valeur

Content-Type

application/json

Autorisation*

<YOUR_API_TOKEN>

Réponse

{
   "id": "63888a772bd6cd2bc8071515",
   "domain": "mobile.space",
   "useTls": false,
   "approved": true,
   "prioritized": false,
   "linkEnabled": true,
   "prefix": "/custom/"
}
AUTHORIZATION_FAILED,
IP_AUTHORIZATION_FAILED
DOMAIN_NOT_FOUND

Créer un domaine

POSThttps://mobile.proxy-seller.com/api/v1/domains

Cette demande crée votre nom de domaine personnalisé.

Exemple

https://mobile.proxy-seller.com/api/v1/domains

En-têtes

Nom

Valeur

Content-Type

application/json

Autorisation*

<YOUR_API_TOKEN>

Corps de la demande

Nom

Type

Description

domaine*

Chaîne

Nom de domaine (exemple.com)

useTls*

Booléen

utiliser ou non TLS

linkEnabled*

Booléen

Utiliser ou non un préfixe personnalisé

préfixe*

Chaîne

préfixe pour le lien après le domaine (exemple "/some/prefix/"), non vide

Exemple de corps de la demande

{
    "domain": "some.com",
    "useTls": false,
    "linkEnabled": true,
    "prefix": "/some/prefix/"
}

Réponse

{
    "id": "6683a91b19erd56a69f71697",
    "domain": "some.com",
    "useTls": false,
    "approved": false,
    "prioritized": false,
    "linkEnabled": true,
    "prefix": "/some/prefix/"
}
AUTHORIZATION_FAILED,
IP_AUTHORIZATION_FAILED

Approuver le domaine

PATCHhttps://mobile.proxy-seller.com/api/v1/domains/{domainId}/approve

Cette demande effectue une vérification et valide votre domaine.

L'IP du domaine doit correspondre à l'IP du serveur proxy

Exemple

https://mobile.proxy-seller.com/api/v1/domains/6683a91b19erd56a69f71697/approve

Paramètres du chemin d'accès

Nom

Type

Description

domainId*

Chaîne

identifiant du domaine

En-têtes

Nom

Valeur

Content-Type

application/json

Autorisation*

<YOUR_API_TOKEN>

Réponse

true
AUTHORIZATION_FAILED,
IP_AUTHORIZATION_FAILED
DOMAIN_NOT_FOUND

Modifier le domaine

PUThttps://mobile.proxy-seller.com/api/v1/domains/{domainId}

Cette demande met à jour votre domaine personnalisé.

Exemple

https://mobile.proxy-seller.com/api/v1/domains/6683a91b19erd56a69f71697

Paramètres du chemin d'accès

Nom

Type

Description

domainId*

Chaîne

identifiant du domaine

En-têtes

Nom

Valeur

Content-Type

application/json

Autorisation*

<YOUR_API_TOKEN>

Corps de la demande

Nom

Type

Description

useTls*

Booléen

utiliser ou non TLS

linkEnabled*

Booléen

Utiliser ou non un préfixe personnalisé

préfixe*

Chaîne

préfixe pour le lien après le domaine (exemple "/some/prefix/"), non vide

Exemple de corps de requête :

{
    "useTls": false,
    "linkEnabled": true,
    "prefix": "/some/new/prefix/"
}

Réponse

{
    "id": "6683a91b19erd56a69f716",
    "domain": "some.com",
    "useTls": false,
    "approved": true,
    "prioritized": false,
    "linkEnabled": true,
    "prefix": "/some/new/prefix/"
}
AUTHORIZATION_FAILED,
IP_AUTHORIZATION_FAILED
DOMAIN_NOT_FOUND

Supprimer le domaine

DELETEhttps://mobile.proxy-seller.com/api/v1/domains/{domainId}

Cette demande supprime le domaine.

Attention, cela peut avoir des effets irréversibles.

Exemple

https://mobile.proxy-seller.com/api/v1/domains/6683a91b19erd56a69f71697

Paramètres du chemin d'accès

Nom

Type

Description

domainId*

Chaîne

identifiant du domaine

En-têtes

Nom

Valeur

Content-Type

application/json

Autorisation*

<YOUR_API_TOKEN>

Réponse

la réponse réussie n'a pas de corps, l'état de réussite est déterminé par le statut 200

AUTHORIZATION_FAILED,
IP_AUTHORIZATION_FAILED

On this page