JSFiddle - React, Tailwind, and code Playground

by edskeizer

HTML

<script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/hmac-sha1.js"></script>
<script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/components/enc-base64-min.js"></script>
<script src="http://sandbox.edskeizer.nl/oauth-1.0a.js"></script>
<div id="output"></div>
<form enctype="multipart/form-data">

<input type="submit" id="submit" value="upload" />
</form>

CoffeeScript

## CODE TO CALL CONTACT LIST
console.clear()
#[email protected]
window.oauth_credentials = {
    'consumer_key': 'o0OnYoBcJbxxXVoGEnbBk6Mto7qbR8r1',
    'consumer_secret': 'DpXb5JjUsqnE4hozFFzL0zeXQfj2GlEZXxdecESYUnjraU3mPsiN2KEsrFTALlKB',
    'token_public': 'NmepTLGZ5iiOd45rhsUTIgK2C0ujXSOi',
    'token_secret': 'VohTh4nIfuqzz8JZexKpGMgLZGI1lRYtjPEEFXewHHbUxMWGhr56uKjwmbVEGvt3'
}

###
#[email protected]
window.oauth_credentials = {
    'consumer_key': 'Joa80vfjQlaJ4jrwevPF7azvMZyJDG9g',
    'consumer_secret': '3MqTqfDLlo6YuFgLMX5fLcbrlhIKFZt6hkzwDi9HtP2lNyt8h2N1KmKVvj2GlbM7',
    'token_public': 'OilJwfo3VcC4v7KwLJrduHjpoZcc6Zg7',
    'token_secret': 'skTLjb0k7E8iodkoWR9QkizGD4Y5FXBum1qlVVd4IWsB1XgkEdbhVmiO7uwGswqg'
}

#[email protected]
window.oauth_credentials = {
    'consumer_key': 'RL4Y3HIHA4sR3IlzuckovUaxn5Ak94Ze',
    'consumer_secret': 'AjaMy2WPIx1t4Bvc22k8n6Ev4S66hs81gah6nm7W3tWnvULQK7ibCuENUb7THEWx',
    'token_public': 'z2TS2WD2l7nyo7LX5dminUiFKurnRxvE',
    'token_secret': 'R8AT697iSFbUjfsPClPHdATPS6OqWnG9NUukf9NvFFqe9RvzC5xEjq2QpammiMsS'
}


###
oauth = OAuth(
    consumer:
      'public': window.oauth_credentials.consumer_key
      'secret': window.oauth_credentials.consumer_secret
    signature_method: "HMAC-SHA1"
)
  
token =
    'public': window.oauth_credentials.token_public
    'secret': window.oauth_credentials.token_secret

request_data = 
    "url": "https://base.aware.care/_session", #to check auth state 
    "method": "GET"

 
auth_data =
  request_url: request_data.url
  contacts: [
    {
      id: 1
      phonenumbers: [ '31640461424' ]
      emails: []
    }
    {
      id: 2
      phonenumbers: [ '(06)27556265' ]
      emails: []
    }
    {
      id: 3
      phonenumbers: [ '+31616507455' ]
      emails: []
    }
    {
      id: 4
      phonenumbers: [ '0031628277885' ]
      emails: []
    }
    {
      id: 5
      phonenumbers: [ '+31640461424' ]
      emails: []
    }
    {
      id: 6
      phonenumbers: [ '+31613162572' ]
     ...