Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create js plugin for organisations to display their needs #472

Open
vincelee888 opened this issue Jun 7, 2019 · 0 comments
Open

create js plugin for organisations to display their needs #472

vincelee888 opened this issue Jun 7, 2019 · 0 comments
Labels

Comments

@vincelee888
Copy link
Member

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 vincelee888 added the js label Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant