I hereby claim:
- I am fatmatto on github.
- I am fatinside (https://keybase.io/fatinside) on keybase.
- I have a public key ASB0WhPw0jZIgmTUyXXZ-QYFFxplRbo7k3GWJ6bOb-S7lAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Verifying that "fatmatto.id" is my Blockstack ID. https://onename.com/fatmatto |
0x1F5757DCA13a7fAC3589CE575efFfba45D2f58C4 |
import Marketcloud from './path/to/marketcloud-js/dist/marketcloud.min.js' | |
// Creating a new instance of the Marketcloud client | |
var client = new Marketcloud.Client({ | |
public_key : "your-public-key" // get it at www.marketcloud.it | |
}); | |
// Utility function to create test passwords and emails |
<!doctype html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width"> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Thank you for your order!</title> | |
<style media="all" type="text/css"> | |
@media all { |
<?php | |
// You need to install the Marketcloud SDK, you will find information on GitHub | |
// https://www.marketcloud.it/documentation/reference/php | |
/* | |
* Here you can find the data structure sent as a POST request | |
* The reference event is order.paid | |
https://docs.razorpay.com/v1/page/webhooks | |
* | |
*/ |
// Creating a new instance of the Marketcloud client | |
var client = new Marketcloud.Client({ | |
public_key: 'your-public-key' | |
}) | |
// File uploads requires at least user authentication | |
client.users.authenticate('example@mail.com', 'somepassword') | |
.then(function(response) { | |
// Auth was successful the client stored the user's auth token |
#!/bin/bash | |
timestamp=$(date +%s) | |
hashedSecret=$(echo -n "YOUR_SECRET_KEY$timestamp" | openssl sha256 -binary | base64) | |
curl -XPOST -H "Content-Type: application/json" -d "{\"publicKey\" : \"YOUR_PUBLIC_KEY\",\"secretKey\" : \"${hashedSecret}\",\"timestamp\" : ${timestamp}}" http://api.marketcloud.it/v0/tokens |
var superagent = require('superagent'), | |
crypto = require('crypto'); | |
var current_time = Date.now(), | |
public_key = "YOUR-PUBLIC-KEY", | |
secret_key = "YOUR-SECRET-KEY", | |
hash = crypto.createHash('sha256') | |
.update(secret_key+current_time) | |
.digest('base64'); | |
{} |