Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

JustGivingArchive/JustGiving.Api.Sdk2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 

Repository files navigation

JavaScript SDK features

  • Extremely low barrier to entry - connect to the JG platform in two lines of HTML
  • New "Connect with JustGiving" button allows JG users to sign in to external apps via OAuth2 and OpenId Connect
  • Easy client-side access to Consumer API resources such as Fundraising Page creation and personalised content feeds

Example:

<script src="JG.js"></script>
<jg-login onlogin="handleLoginState" />

<script>
        JG.init({
            appId: 'bafff466',
            environment: 'sandbox'
        });
        
        function handleLoginState(result){
          if(result){
            alert('Hi, ' + result.displayName);
            
            var feed = JG.getFeed();
            // ...do something with the content feed
          }
        }
</script>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published