Overview
Add an endpoint that allows user to supply a URL and transfer it to the authenticated user's account.
API
POST https://snap.as/api/photos/upload/fetch
Parameters:
| Field | Type | Example value |
|---|---|---|
| url | string | https://example.com/photo.jpeg |
Example response: a Photo object
{
"code": 201,
"data": {
"id": "aBCd5678",
"body": null,
"filename": "photo.jpeg",
"size": 219995,
"url": "https://i.snap.as/aBCd5678.jpeg",
}
}