Skip to content

Instantly share code, notes, and snippets.

View dennispaagman's full-sized avatar

Dennis Paagman dennispaagman

View GitHub Profile
@dennispaagman
dennispaagman / springsense-guide.md
Last active August 29, 2015 14:01
Springsense Widget Setup Guide

Springsense Widget

The SpringSense widget dynamically loads SpringSense content on your page via JavaScript. It also templatable so you can customize the output to fit your own design. This manual will help you set up the widget.

Loading the SpringSense script

You can load the script by including the following code to the page;

<script src="https://4d9ae17c5ae68590ce6f-1c6f7d77e67457fef78cfb90b7e69696.ssl.cf3.rackcdn.com/assets/springsense.js"></script>
@dennispaagman
dennispaagman / ssl_check.rb
Created August 8, 2014 08:58
SSL certificate checker
require 'net/http'
# hosts is an Array of hosts to be checked. For example:
hosts = ['www.springest.nl', 'www.springest.de', 'www.springest.com']
hosts.each do |host|
http = Net::HTTP.new(host, 443)
http.use_ssl = true
req = Net::HTTP::Head.new('/')
@dennispaagman
dennispaagman / meta.md
Created August 25, 2014 10:06
Springest NL meta data possible values
id Region
1 Amsterdam
2 Rotterdam
3 Den Haag
4 Utrecht
5 Eindhoven
6 Groningen
7 Tilburg
8 Almere / Lelystad
@dennispaagman
dennispaagman / webhooks.md
Last active August 29, 2015 14:06
Springest Webhooks

Webhook feature

On create, update or delete of a training we POST to a single URL (to be delivered by Courseware to Springest) that has to be reachable via HTTPS.

The payload will be JSON, structured as following:

{
	"action": "create",
	"id": 123456,
<?xml version="1.0" encoding="UTF-8"?>
<response>
<meta>
<results type="integer">1</results>
<offset type="integer">0</offset>
<filters type="array"/>
</meta>
<trainings type="array">
<training>
<id type="integer">123</id>
@dennispaagman
dennispaagman / 201.json
Last active August 29, 2015 14:12
Responses for Springest Bookings API
{
"id": "123123"
}