Skip to content

Instantly share code, notes, and snippets.

View IntuitDeveloperRelations's full-sized avatar

Intuit Partner Platform IntuitDeveloperRelations

View GitHub Profile
@IntuitDeveloperRelations
IntuitDeveloperRelations / BatchAttach.java
Created April 8, 2015 06:09
QBO V3 API - Java SDK - Upload multiple files and attach with Batch request
package attachable;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.FileInputStream;
@IntuitDeveloperRelations
IntuitDeveloperRelations / Payments-ExecuteCharge
Created October 21, 2014 15:34
Payments API - Execute Charge
//string body = "{\"amount\": \"10.55\",\"token\": \"s2ZJuHhJQkZMXBngU7fP00At21c\",\"currency\": \"USD\"}";
//string responseXML = ExecutePaymentsCharge(consumerKey, consumerSecret, accessToken, accessSecret, realmId, body);
public static string ExecutePaymentsCharge(string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret, string realmId, string body)
{
string uri = string.Format("https://sandbox.api.intuit.com/quickbooks/v4/payments/charges");
HttpWebRequest httpWebRequest = WebRequest.Create(uri) as HttpWebRequest;
httpWebRequest.Headers.Add("Request-Id", "iuy87t79t3861796t87r670");
httpWebRequest.Method = "POST";
httpWebRequest.Accept = "application/json";
@IntuitDeveloperRelations
IntuitDeveloperRelations / CAD-SAML.cs
Created August 11, 2014 15:06
IPP CAD API / Component Space: Send SAML assertion to obtain OAuth tokens
// Copyright Intuit, Inc 2012
// SAML Sample Application
// This sample is for reference purposes only.
// Copyright (c) 2014 Intuit Inc. All rights reserved.
// Redistribution and use in source and binary forms, with or without modification, are permitted in conjunction
// with Intuit Partner Platform.
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
@IntuitDeveloperRelations
IntuitDeveloperRelations / V3-ExecuteQuery.cs
Last active March 6, 2018 12:32
QuickBooks API - .NET/DevDefined - Execute V3 Query
using DevDefined.OAuth.Consumer;
using DevDefined.OAuth.Framework;
using System.IO;
using System.Text;
using System.Net;
using Intuit.Ipp.DataService;
using Intuit.Ipp.Security;
using System.Web;
namespace IPPQbApiConsoleApp
<?php
# The MIT License (MIT)
#
# Copyright (c) 2014 Intuit Partner Platform
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
# the Software, and to permit persons to whom the Software is furnished to do so,
@IntuitDeveloperRelations
IntuitDeveloperRelations / QbApi-Entitlements.cs
Created May 28, 2014 19:17
QuickBooks API - .NET/DevDefined - Call QBO Entitlements API
using DevDefined.OAuth.Consumer;
using DevDefined.OAuth.Framework;
using System.IO;
using System.Text;
using System.Net;
namespace IPPQbApiConsoleApp
{
static class SampleCalls
{
@IntuitDeveloperRelations
IntuitDeveloperRelations / V3-QBO-Report-Print.cs
Created April 14, 2014 18:31
IPP .NET SDK v3 - QBO - Retrieve Report and Print to Console #IppDotNetSdkV3 #Report #QBO
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Intuit.Ipp.Core;
using Intuit.Ipp.Data;
using Intuit.Ipp.ReportService;
static class SampleCalls
@IntuitDeveloperRelations
IntuitDeveloperRelations / V3-Platform-Reconnect.php
Created January 7, 2014 00:55
IPP PHP SDK v3 - Platform - Reconnect
<?php
require_once('../config.php');
require_once(PATH_SDK_ROOT . 'Core/ServiceContext.php');
require_once(PATH_SDK_ROOT . 'PlatformService/PlatformService.php');
require_once(PATH_SDK_ROOT . 'Utility/Configuration/ConfigurationManager.php');
// Tell us whether to use your QBO vs QBD settings, from App.config
$serviceType = IntuitServicesType::QBD;
@IntuitDeveloperRelations
IntuitDeveloperRelations / IPP-Platform-Reconnect.cs
Last active December 3, 2017 01:27
.NET DevDefined IPP Platform Reconnect Call
using DevDefined.OAuth.Consumer;
using DevDefined.OAuth.Framework;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Runtime.Serialization.Formatters.Binary;
using System.Net;
@IntuitDeveloperRelations
IntuitDeveloperRelations / IPP-Platform-Disconnect.cs
Created November 1, 2013 00:21
.NET DevDefined IPP Platform Disconnect Call
using DevDefined.OAuth.Consumer;
using DevDefined.OAuth.Framework;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Runtime.Serialization.Formatters.Binary;
using System.Net;