Skip to content

Instantly share code, notes, and snippets.

curl https://api-staging.finix.io/payment_instruments/PIkDoSzyzVv4A6gRkieyV1mr/verifications \
-H "Content-Type: application/vnd.json+api" \
-u USvd9Se9PyL8Aw59knv5YWeF:0ac5f849-5991-42de-a8fa-020701745716 \
-d '{"processor": "VISA_V1"}'
curl https://api-test.payline.io/settlements/STs1EBDyorXCtatBdrXdxzYu \
-H "Content-Type: application/vnd.json+api" \
-u USkoFNY73WEiP8tYmZtPa6e4:e28fe471-5b2c-4f20-9db9-0a3e5fd06110 \
-X PUT \
-d '
{
"destination": "PIvB3Ak5hpM2LrnjuGdsdSNQ"
}'
curl -i https://api-test.payline.io/authorizations/AUcLed6wZFMXCWvVJcZFxUmj \
-H "Content-Type: application/vnd.json+api" \
-u USvE8YdryB6MRxnZdtVM9C8w:cb4ecddb-5e1b-4215-9f71-365659ac7773 \
-d '
{
"void_me": True
}'
<?php
$to = 'michael.serna01@gmail.com';
$subject = 'personal website';
$name = $_GET['fullname'];
$email = $_GET['email'];
$message = $_GET['message'];
$message = <<<EMAIL
Name: $name
Email: $email
Message: $message
Dashboard User ID User Guid ROLE Application ID Application GUID Identity ID Identity GUID
Cross River USgdzLpy4AdQy2BUim6SYmdk 7b3ad05e-9f2f-4bc6-8966-545de672711b ROLE_PLATFORM n/a N/a
Stripe USssB2ix2pnSabNNTUkmELof d64486ca-eb42-46b3-97ad-3c0ec781cfca ROLE_PARTNER APbmgzh7p41hxissnqgEFHJT 53cfdc13-254d-4e9a-b66c-80d4c7d961d3 N/A
Lyft US3wtSjxkfXTh4c7iDKh9FLr 1473c3b1-755c-4bd6-ab4e-c7175567886d ROLE_MERCHANT APbmg
DESIRED REQUEST
curl -v http://b.papi.staging.finix.io/disputes/DIpGgij37fsc22A4JTf9bP1a/files \
-H "Content-Type: multipart/form-data" \
-u USwyuGJdVcsRTzDeX9smLVGQ:968cb207-1abb-4100-9425-9a723e99eb10 \
-F "file=@testfile.txt"
### Upload Evidence For a Dispute [POST]
+ Request (multipart/form-data, boundary=AaB03x)
<?php
require_once('vendor/autoload.php');
//require_once("Bootstrap.php");
//\Finix\Bootstrap::init();
require(__DIR__ . '/src/Finix/Settings.php');
Finix\Settings::configure('http://b.papi.staging.finix.io', 'USwyuGJdVcsRTzDeX9smLVGQ', '968cb207-1abb-4100-9425-9a723e99eb10');
require(__DIR__ . '/src/Finix/Bootstrap.php');
\Finix\Bootstrap::init();
decryptC = function (stringParam) {
console.log("NEW TEST------------------------------------")
console.log("THIS IS FOR STRING: " + stringParam )
var wordArray = stringParam.split(" ")
results = [];
var skip_index = ""
for(var i = 0; i<wordArray.length; i++){
var word = wordArray[i]
require 'Gmail'
Gmail.client_id = ENV['OMNIAUTH_CLIENT_ID']
Gmail.client_secret = ENV['OMNIAUTH_CLIENT_SECRET']
Gmail.refresh_token = refresh_token
service = Google::APIClient.new.discovered_api('gmail', 'v1')
Gmail.client.execute(
:api_method => service.users.labels.list,
:parameters => {'userId' => 'me'},
:headers => {'Content-Type' => 'application/json'})
Survey.class_eval do
def interactions
return Interaction.where(:survey_id => self.id)
end
end