Page MenuHomeWrite.as

Support uploading to Snap.as via pull
Closed, ResolvedPublic

Description

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:

FieldTypeExample value
urlstringhttps://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",
  }
}

Revisions and Commits

Event Timeline

matt triaged this task as High priority.Feb 10 2021, 8:22 PM
matt created this task.
matt moved this task from Backlog to Next Up on the Snap.as board.
matt edited projects, added Snap.as API; removed Snap.as.
matt moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
matt closed this task as Resolved by committing Restricted Diffusion Commit.Feb 10 2021, 8:53 PM
matt added a commit: Restricted Diffusion Commit.
matt added a commit: Restricted Diffusion Commit.