Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 453 Bytes

File metadata and controls

23 lines (19 loc) · 453 Bytes

getUserBlockById

import { getUserBlockById } from "osm-api";

await getUserBlockById(12345);

Response:

{
  "created_at": "2014-10-07T09:21:12Z",
  "ends_at": "2014-10-07T09:21:31Z",
  "id": 1,
  "needs_view": false,
  "reason": "test block",
  "creator": { "uid": 632, "user": "pnorman" },
  "revoker": { "uid": 632, "user": "pnorman" },
  "user": { "uid": 1154, "user": "SimonDev" },
  "updated_at": "2014-10-07T09:21:31Z"
}