PlaceAVote / pav-api

This repository contains the Placeavote API.
0 stars 0 forks source link

New endpoint that returns an image given an external url. #102

Closed SudoPlz closed 8 years ago

SudoPlz commented 8 years ago

I am in need of an endpoint, something like: /utils/scrap_article?url=www.adomain.com that returns an image from an external url, in order to show that image to the attached url section of our new issue create screen.

Thank you very much!

johnboy14 commented 8 years ago

Lets use the following image as an example. You will need all the graph data in order to render the image as it will be after the user posts it. So I will return the following data items in the response

{
    "article_link": "https://.....",
    "article_title": "whatever",
    "article_img": "https://....."
}

image

SudoPlz commented 8 years ago

Thats exactly what I need!