Push notifications & alerts
POST /me/push-tokens 僅限工作階段
Register (or reassign) a mobile device’s Expo push token.
Upserted by token value, not by user: if a different account signs in on the same device, this reassigns the token to the new caller. Returns 204 No Content.
請求內容
tokenstring 必填- The Expo push token minted by the device.範例
ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx] platformstring 必填iosorandroid.範例ios
curl -X POST "https://freehire.me/api/v1/me/push-tokens" \
-H 'Content-Type: application/json' -b cookies.txt \
-d '{"token":"ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]","platform":"ios"}'