Skip to content

Instantly share code, notes, and snippets.

@WietseWind
WietseWind / moreapp-oauth-sample.twig
Last active September 15, 2016 09:22
Custom oauth with moreapp and nodum (generate consumer_secret based on password at: https://docs.moreapp.com/#/api/authentication )
{% set url = 'https://api.moreapp.com/api/v1.0/customers' %}
{% set consumer_key = '[email protected]' %}
{% set consumer_secret = '80a7d446f2e328114994f057e72be827a419eba1' %}
{% set nonce = random(999)|md5|slice(0,8) %}
{% set time = 'now'|date('U') %}
<h1>Signature String</h1>
{% set sig_str = 'GET' ~