streetsupport-web icon indicating copy to clipboard operation
streetsupport-web copied to clipboard

create js plugin for organisations to display their needs

Open vincelee888 opened this issue 5 years ago • 0 comments

To encourage organisations to post more Needs on Street Support, we want to remove the duplication of work adding a Need on SSN and their own website.

Much like the Twitter widget, to display a user's tweets on a webpage, we want a js file we can host on StreetSupport, which org's can than embed on their page that displays their Needs.

The file would inject a list of the latest 5 Needs the organisation has posted with a description, datetime and link to the Need's details page back on Street Support

Current Needs listing on StreetSupport: https://streetsupport.net/give-help/help/?postcode=m1&type=All

Individual Need details: https://streetsupport.net/give-help/help/request/?id=5ced139cce0af517084b0b31

Needs API endpoint: this is yet to be built, but will be available at: v3/service-providers/{service-provider-id}/needs/ and will return a payload like this one: https://ssn-api-prod.azurewebsites.net/v2/service-provider-needs/?latitude=53.4776360564516&longitude=-2.23621877217742&pageSize=21&range=10000

example Twitter widget embed:

      <a class="twitter-timeline" data-tweet-limit="1" href="https://twitter.com/streetsupportuk">Tweets by Street Support Network</a>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

vincelee888 avatar Jun 07 '19 14:06 vincelee888