Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Original Author: J. Le Coupanec
# Copies from: https://gist.github.com/LeCoupa/122b12050f5fb267e75f

Keybase proof

I hereby claim:

  • I am 1989gaurav on github.
  • I am ggupta (https://keybase.io/ggupta) on keybase.
  • I have a public key ASCOHNLJc1ZNoX6nCgWcWWrJQY9nQC_Ap0pRvPcD9atk7wo

To claim this, I am signing this object:

@guptag-dev
guptag-dev / gist:7929957
Created December 12, 2013 15:39
php code to retrieve webhook
<?php
$request_body = file_get_contents('php://input');
$file = '/tmp/webhook_post.json';
$json = json_decode($request_body);
$event = $json->{"event"};
if( strcmp($event, "claim_acknowledgement") == 0) {
$claim_ack = "";
$claim_ack .= $json->{"acknowledgement"}->{"reference_id"} . PHP_EOL;
$claim_ack .= $json->{"acknowledgement"}->{"submission_status"} . PHP_EOL;
@guptag-dev
guptag-dev / payment_status_post.php
Created October 4, 2013 19:04
POST v1.1/payment/status PHP
<?php
$data = array();
$data['api_key'] = '';
$data['payer_id'] = '00002'; //List of Payer Ids: https://eligibleapi.com/resources/information-sources.json
$data['provider_npi'] = '';
$data['provider_tax_id'] = '';
$data['member_id'] = '';
$data['member_last_name'] = '';
$data['member_first_name'] = '';
@guptag-dev
guptag-dev / gist:6639243
Created September 20, 2013 15:26
enrollment creation webhook post
{
"event": "enrollment_status",
"details": {
"id": 1921,
"facility_name": "Quality",
"provider_name": "Jane Austen",
"tax_id": "12345678",
"address": "125 Snow Shoe Road",
"city": "Sacramento",
"state": "CA",
@guptag-dev
guptag-dev / gist:6639235
Created September 20, 2013 15:25
Enrollment Request
{
"api_key": "key-here",
"service_provider_list": [
{
"facility_name": "Quality",
"provider_name": "Jane Austen",
"tax_id": "12345678",
"address": "125 Snow Shoe Road",
"city": "Sacramento",
"state": "CA",
@guptag-dev
guptag-dev / gist:6639227
Created September 20, 2013 15:25
Reponse to enrollment request real time
{
"enrollment_request": {
"created_at": "2013-09-20T15:15:16+00:00",
"id": 676,
"status": "pending",
"updated_at": "2013-09-20T15:15:16+00:00",
"enrollment_npis": [
{
"address": "125 Snow Shoe Road",
"city": "Sacramento",
@guptag-dev
guptag-dev / gist:6638472
Created September 20, 2013 14:30
500 for Bad npi
{
"api_key": "4d69b8b1-0ef8-45a5-9150-8334d6e6b49a",
"service_provider_list": [
{
"facility_name": "Quality",
"provider_name": "Jane Austen",
"tax_id": "12345678",
"address": "125 Snow Shoe Road",
"city": "Sacramento",
"state": "CA",
{
"enrollment_request": {
"created_at": "2013-09-20T12:16:08+00:00",
"id": 668,
"status": "pending",
"updated_at": "2013-09-20T12:16:08+00:00",
"enrollment_npis": [
{
"address": "125 Snow Shoe Road",
"city": "Sacramento",
Status code : 400
```json
{ "created_at": "2013-08-22T15:17:22Z", "eligible_id": "6b28ad5c-103b-6519-05ab-e48fc96562c5", "error": { "response_code": "Y", "response_description": "Yes", "agency_qualifier_code": "", "agency_qualifier_description": "", "reject_reason_code": "101", "reject_reason_description": "Missing Signature For Payer", "follow-up_action_code": "C", "follow-up_action_description": "Please Correct and Resubmit", "details": "Payer Id x needs signature to process enrollment request. Please add signature and resubmit the request. Please user our signature api to create and submit signature which is documented at WIKI_LINK" }
}
```