Skip to content

Instantly share code, notes, and snippets.

package com.paytm.wallet.gratification;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
//import com.paytm.merchant.CheckSumServiceHelper;
import com.paytm.pg.merchant.CheckSumServiceHelper;
import java.io.BufferedReader;
import java.io.DataOutputStream;
@Rauk
Rauk / Some Common API examples
Created April 29, 2016 07:51
Some Common API examples
Create Client
client, err := minio.NewV2(Url, AccessKey, SecretKey, true)
if err != nil {
log.Fatalln(err)
}
Create Bucket and List buckets
err = client.MakeBucket("bucketName", "")
if err != nil {
log.Fatalln(err)
@Rauk
Rauk / gist:457be89a59c33220ab30
Created March 18, 2016 10:16
Delete All the objects in the bucket
package main
import (
"log"
"github.com/minio/minio-go"
"fmt"
)
func main() {
accessKey := "accessKey"