Chilkat Examples

ChilkatHOMEAndroid™Classic ASPCC++C#Mono C#.NET Core C#C# UWP/WinRTDataFlexDelphi ActiveXDelphi DLLVisual FoxProJavaLianjaMFCObjective-CPerlPHP ActiveXPHP ExtensionPowerBuilderPowerShellPureBasicCkPythonChilkat2-PythonRubySQL ServerSwift 2Swift 3,4,5...TclUnicode CUnicode C++Visual Basic 6.0VB.NETVB.NET UWP/WinRTVBScriptXojo PluginNode.jsExcelGo

VB.NET Web API Examples

Primary Categories

ABN AMRO
AWS Translate
Activix CRM
Adyen
Amazon DynamoDB
Amazon MWS
Amazon Rekognition
Aruba Fatturazione
Azure Maps
Azure Monitor
Azure OAuth2
Azure Storage Accounts
Bitfinex v2 REST
Bluzone
CallRail
CardConnect
Cerved
ClickBank
Clickatell
Cloudfare
Constant Contact
DocuSign
ETrade
Egypt ITIDA
Etsy
Facebook
Frame.io
GeoOp
GetHarvest
Global Payments
Google People
Google Search Console
Hungary NAV Invoicing
IBM Text to Speech
Ibanity
IntakeQ
Jira
Lightspeed
MYOB
Magento
MercadoLibre

Microsoft Calendar
Microsoft Group
Microsoft Tasks and Plans
Microsoft Teams
Okta OAuth/OIDC
OneLogin OIDC
OneNote
PayPal
Paynow.pl
Peoplevox
Populi
QuickBooks
Rabobank
Royal Mail OBA
SCiS Schools Catalogue
SII Chile
SMSAPI
SOAP finkok.com
SendGrid
Shippo
Shopify
Shopware
Shopware 6
SimpleTexting
Square
Stripe
SugarCRM
Trello
Twilio
Twitter
VoiceBase
Vonage
Walmart
Walmart v3
WhatsApp
WiX
WooCommerce
WordPress
Xero
Yousign
_Miscellaneous_
eBay
effectconnect
hacienda.go.cr

 

 

 

(VB.NET) MercadoLibre - Consultar mis datos personales

Consultar mis datos personales

For more information, see https://developers.mercadolibre.com.ar/es_ar/servicios-consulta-usuarios

Chilkat .NET Downloads

Chilkat .NET Assemblies

Chilkat for .NET Core

Chilkat for Mono

' This example assumes the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.

Dim http As New Chilkat.Http

' First get our previously obtained OAuth2 access token.
Dim jsonToken As New Chilkat.JsonObject
Dim success As Boolean = jsonToken.LoadFile("qa_data/tokens/mercadolibre.json")

' Implements the following CURL command:

' curl - X GET https://api.mercadolibre.com/users/me?access_token=$ACCESS_TOKEN

' Use the following online tool to generate HTTP code from a CURL command
' Convert a cURL Command to HTTP Source Code

http.SetUrlVar("access_token",jsonToken.StringOf("access_token"))

Dim sbResponseBody As New Chilkat.StringBuilder
success = http.QuickGetSb("https://api.mercadolibre.com/users/me?access_token={$access_token}",sbResponseBody)
If (success = False) Then
    Debug.WriteLine(http.LastErrorText)
    Exit Sub
End If


Dim jResp As New Chilkat.JsonObject
jResp.LoadSb(sbResponseBody)
jResp.EmitCompact = False

Debug.WriteLine("Response Body:")
Debug.WriteLine(jResp.Emit())

Dim respStatusCode As Integer = http.LastStatus
Debug.WriteLine("Response Status Code = " & respStatusCode)
If (respStatusCode >= 400) Then
    Debug.WriteLine("Response Header:")
    Debug.WriteLine(http.LastHeader)
    Debug.WriteLine("Failed.")
    Exit Sub
End If


' Sample JSON response:
' (Sample code for parsing the JSON response is shown below)

' {
'   "id": 202593498,
'   "nickname": "TETE2870021",
'   "registration_date": "2016-01-06T11: 31: 42.000-04: 00",
'   "country_id": "AR",
'   "address": {
'     "state": "AR-C",
'     "city": "Palermo"
'   },
'   "user_type": "normal",
'   "tags": [
'     "normal",
'     "test_user",
'     "user_info_verified"
'   ],
'   "logo": null,
'   "points": 100,
'   "site_id": "MLA",
'   "permalink": "http://perfil.mercadolibre.com.ar/TETE2870021",
'   "seller_reputation": {
'     "level_id": null,
'     "power_seller_status": null,
'     "transactions": {
'       "period": "historic",
'       "total": 0,
'       "completed": 0,
'       "canceled": 0,
'       "ratings": {
'         "positive": 0,
'         "negative": 0,
'         "neutral": 0
'       }
'     }
'   },
'   "buyer_reputation": {
'     "tags": [
'     ]
'   },
'   "status": {
'     "site_status": "active"
'   }
' }

' Sample code for parsing the JSON response...
' Use the following online tool to generate parsing code from sample JSON:
' Generate Parsing Code from JSON



Dim strVal As String

Dim id As Integer = jResp.IntOf("id")
Dim nickname As String = jResp.StringOf("nickname")
Dim registration_date As String = jResp.StringOf("registration_date")
Dim country_id As String = jResp.StringOf("country_id")
Dim addressState As String = jResp.StringOf("address.state")
Dim addressCity As String = jResp.StringOf("address.city")
Dim user_type As String = jResp.StringOf("user_type")
Dim logo As String = jResp.StringOf("logo")
Dim points As Integer = jResp.IntOf("points")
Dim site_id As String = jResp.StringOf("site_id")
Dim permalink As String = jResp.StringOf("permalink")
Dim seller_reputationLevel_id As String = jResp.StringOf("seller_reputation.level_id")
Dim seller_reputationPower_seller_status As String = jResp.StringOf("seller_reputation.power_seller_status")
Dim seller_reputationTransactionsPeriod As String = jResp.StringOf("seller_reputation.transactions.period")
Dim seller_reputationTransactionsTotal As Integer = jResp.IntOf("seller_reputation.transactions.total")
Dim seller_reputationTransactionsCompleted As Integer = jResp.IntOf("seller_reputation.transactions.completed")
Dim seller_reputationTransactionsCanceled As Integer = jResp.IntOf("seller_reputation.transactions.canceled")
Dim seller_reputationTransactionsRatingsPositive As Integer = jResp.IntOf("seller_reputation.transactions.ratings.positive")
Dim seller_reputationTransactionsRatingsNegative As Integer = jResp.IntOf("seller_reputation.transactions.ratings.negative")
Dim seller_reputationTransactionsRatingsNeutral As Integer = jResp.IntOf("seller_reputation.transactions.ratings.neutral")
Dim statusSite_status As String = jResp.StringOf("status.site_status")
Dim i As Integer = 0
Dim count_i As Integer = jResp.SizeOfArray("tags")
While i < count_i
    jResp.I = i
    strVal = jResp.StringOf("tags[i]")
    i = i + 1
End While
i = 0
count_i = jResp.SizeOfArray("buyer_reputation.tags")
While i < count_i
    jResp.I = i
    i = i + 1
End While

 

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