Chilkat Examples

ChilkatHOMEAndroid™Classic ASPCC++C#C# UWP/WinRTDataFlexDelphi ActiveXDelphi DLLVisual FoxProJavaLianjaMFCObjective-CPerlPHP ActiveXPHP ExtensionPowerBuilderPowerShellPureBasicPythonRubySQL ServerSwiftTclUnicode CUnicode C++Visual Basic 6.0VB.NETVB.NET UWP/WinRTVBScriptXojo PluginNode.js

Visual Basic 6.0 Examples

Async
Certificates
ECC
Email Object
Encryption
FTP
HTML-to-XML/Text
Gzip
HTTP
IMAP
JSON
MHT / HTML Email
PEM
PFX/P12
Java KeyStore (JKS)
POP3
RSA Encryption
MIME
REST
SCP
SMTP
Socket/SSL/TLS
SSH Key
SSH
SFTP
Stream
Tar Archive
XML
XMP
Zip

More Examples...
Google APIs
Google Cloud Storage
Azure Cloud Storage
Amazon S3 (new)
Google Drive
ASN.1
PRNG
Amazon S3
Bounced Email
CSV
Diffie-Hellman
DKIM / DomainKey
DSA
NTLM
QuickBooks

 

 

 

 

 

 

 

(Visual Basic 6.0) QuickBooks - Create a Bill

Demonstrates how to send an JSON request to create a QuickBooks bill.

Chilkat ActiveX Downloads

ActiveX for 32-bit and 64-bit Windows

'  All Chilkat classes can be unlocked at once at the beginning of a program
'  by calling UnlockBundle.  It requires a Bundle unlock code.
Dim chilkatGlob As New ChilkatGlobal
Dim success As Long
success = chilkatGlob.UnlockBundle("Anything for 30-day trial.")
If (success <> 1) Then
    Text1.Text = Text1.Text & chilkatGlob.LastErrorText & vbCrLf
    Exit Sub
End If

Dim http As New ChilkatHttp

'  It is assumed the application has already acquired an access token.
'  Provide the OAuth 1.0a credentials:
http.OAuth1 = 1
http.OAuthConsumerKey = "YourConsumerKey"
http.OAuthConsumerSecret = "YourConsumerSecret"
http.OAuthToken = "YourAccessToken"
http.OAuthTokenSecret = "YourAccessTokenSecret"

Dim json As String
json = "{ ""Line"": [  ... }"


/*  The complete JSON might look like this:

{
    "Line":[
        {
            "Id":"1",
            "Amount": 200.00,
            "DetailType":"AccountBasedExpenseLineDetail",
            "AccountBasedExpenseLineDetail":
            {
                "AccountRef":
                {
                    "value":"7"
                }
            }
        } 
    ],
    "VendorRef":
    {
        "value":"56"
    }
}

*/

'  Indicate we want a JSON response.  Do this by setting the Accept request header to "application/json"
'  To get an XML response, leave the Accept property at the default, or set it to "application/xml"
http.Accept = "application/json"

'  The company ID (also known as your "realm") is the number in the URL that comes after "company/"
Dim resp As ChilkatHttpResponse
Set resp = http.PostJson2("https://sandbox-quickbooks.api.intuit.com/v3/company/9991234567/bill","application/json",json)
If (resp Is Nothing ) Then
    Text1.Text = Text1.Text & http.LastErrorText & vbCrLf
Else
    '  Display the JSON response.
    Text1.Text = Text1.Text & resp.BodyStr & vbCrLf

End If


 

© 2000-2016 Chilkat Software, Inc. All Rights Reserved.