Skip to content

Instantly share code, notes, and snippets.

@Downes
Created December 2, 2018 19:54
Show Gist options
  • Select an option

  • Save Downes/fc1ee42c0dfda66f46ae96d8411e5736 to your computer and use it in GitHub Desktop.

Select an option

Save Downes/fc1ee42c0dfda66f46ae96d8411e5736 to your computer and use it in GitHub Desktop.
Adding Badgr account to admin_accounts() in admin.cgi in gRSShopper
$content .= &admin_configtable($dbh,$query,"Badgr",
("Badgr API base URL:badgr_url","Badgr Account ID (email):badgr_account","Badgr Account Password:badgr_password","Access Key:badgr_cckey","Issuer ID:badgr_issuerid"));
$content .= sprintf(qq|To create and award badges, <a href="https://badgr.io/auth/login">create a Badgr account</a> and input email address and password above. The Base URL is usually https://api.badgr.io and the Access key is automatically generated.
However, before badges are awarded, a Badge Issuer must be created; <a href="%sadmin.cgi?action=badgr&badgr=issuer">Click here</a> to generate an Issuer
automatically.|,$Site->{st_cgi});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment