Rest API

Notification

Register as a new device

POST
/device/register
expoTokenstring
deviceOsstring
Value in"ios" | "android" | "unknown"
language?string
Default"en"

Response Body

curl -X POST "https://demo.expostarter.com/api/device/register" \
  -H "Content-Type: application/json" \
  -d '{
    "expoToken": "string",
    "deviceOs": "ios"
  }'
const body = JSON.stringify({
  "expoToken": "string",
  "deviceOs": "ios"
})

fetch("https://demo.expostarter.com/api/device/register", {
  body
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
  "strings"
)

func main() {
  url := "https://demo.expostarter.com/api/device/register"
  body := strings.NewReader(`{
    "expoToken": "string",
    "deviceOs": "ios"
  }`)
  req, _ := http.NewRequest("POST", url, body)
  req.Header.Add("Content-Type", "application/json")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://demo.expostarter.com/api/device/register"
body = {
  "expoToken": "string",
  "deviceOs": "ios"
}
response = requests.request("POST", url, json = body, headers = {
  "Content-Type": "application/json"
})

print(response.text)
{
  "status": true
}
{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}