### PHP Example: Reload Cache with API Key Source: https://www.vistasoft.com.br/api/clientes Demonstrates how to make a GET request to the Vista API using PHP cURL to reload the cache. It includes setting the API key, constructing the URL, and handling the JSON response. ```PHP $key = 'c9fdd79584fb8d369a6a579af1a8f681'; $url = 'http://sandbox-rest.vistahost.com.br/reloadcache?key=' . $key; $ch = curl_init($url); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $ch, CURLOPT_HTTPHEADER , array( 'Accept: application/json' ) ); $result = curl_exec( $ch ); $result = json_decode( $result, true ); print_r( $result ); ``` -------------------------------- ### PHP cURL Example for API Cache Reload Source: https://www.vistasoft.com.br/api/apidoc Demonstrates how to perform a GET request to the API's `reloadcache` endpoint using PHP's cURL library. It shows how to include the API key in the URL, set the required `Accept: application/json` header, execute the request, and decode the JSON response. This example targets the sandbox environment. ```PHP $key = 'c9fdd79584fb8d369a6a579af1a8f681'; $url = 'http://sandbox-rest.vistahost.com.br/reloadcache?key=' . $key; $ch = curl_init($url); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $ch, CURLOPT_HTTPHEADER , array( 'Accept: application/json' ) ); $result = curl_exec( $ch ); $result = json_decode( $result, true ); print_r( $result ); ``` -------------------------------- ### Example: Reload Cache API Call (PHP) Source: https://www.vistasoft.com.br/api/index This PHP code snippet demonstrates how to make a basic API call to the Vista Software & Internet sandbox environment to reload the cache. It initializes a cURL session, sets the API key and target URL, includes the required 'Accept: application/json' header, executes the request, and then decodes and prints the JSON response. ```PHP $key = 'c9fdd79584fb8d369a6a579af1a8f681'; $url = 'http://sandbox-rest.vistahost.com.br/reloadcache?key=' . $key; $ch = curl_init($url); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $ch, CURLOPT_HTTPHEADER , array( 'Accept: application/json' ) ); $result = curl_exec( $ch ); $result = json_decode( $result, true ); print_r( $result ); ``` -------------------------------- ### PHP Example: Reload API Cache Source: https://www.vistasoft.com.br/api/imoveis This PHP code demonstrates how to make a GET request to the Vista API to reload the cache. It uses cURL to send the request with the required "Accept: application/json" header and decodes the JSON response. A valid API key is necessary for authentication. ```PHP $key = 'c9fdd79584fb8d369a6a579af1a8f681'; $url = 'http://sandbox-rest.vistahost.com.br/reloadcache?key=' . $key; $ch = curl_init($url); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $ch, CURLOPT_HTTPHEADER , array( 'Accept: application/json' ) ); $result = curl_exec( $ch ); $result = json_decode( $result, true ); print_r( $result ); ``` -------------------------------- ### PHP Example: Reload Cache via API Source: https://www.vistasoft.com.br/api/viewpage/apidoc This PHP code snippet demonstrates how to perform a GET request to the Vista API's 'reloadcache' endpoint using cURL. It shows how to include an API key, set the 'Accept: application/json' header, and process the JSON response. ```php $key = 'c9fdd79584fb8d369a6a579af1a8f681'; $url = 'http://sandbox-rest.vistahost.com.br/reloadcache?key=' . $key; $ch = curl_init($url); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $ch, CURLOPT_HTTPHEADER , array( 'Accept: application/json' ) ); $result = curl_exec( $ch ); $result = json_decode( $result, true ); print_r( $result ); ``` -------------------------------- ### API Documentation Overview Source: https://www.vistasoft.com.br/api/clientes Overview of the Vista Software & Internet API structure, including main sections for integration, client management, and property management, along with a sandbox testing environment. ```APIDOC API Doc - Como Integrar Quickstart Guide Métodos Parâmetros dos métodos Clientes Pesquisar clientes Pesquisar clientes por corretor Pesquisar clientes por agencia Exibir detalhes de um cliente Exibir os historicos de um cliente Exibir imóveis favoritos de um cliente Cadastrar um cliente Alterar um cliente Cadastrar o histórico de um cliente Definir um corretor para um cliente Saber os campos disponíveis Enviar leads Imóveis Pesquisar imóveis Informações importantes Pesquisar imóveis por corretor Pesquisar imóveis por agencia Lista de cidades, bairros, valores, etc.. Exibir detalhes de um imóvel Exibir fotos de um imóvel Exibir anexos de um imóvel Exibir os historicos de um imóvel Cadastrar um imóvel Alterar um imóvel Cadastrar fotos em um imóvel Cadastrar documentos em um imóvel Cadastrar o histórico de um imóvel Cadastrar o proprietário de um imóvel Definir um corretor para um imóvel Saber os campos disponíveis API List e Teste (Sandbox) ``` -------------------------------- ### Vista API Resources and Endpoints Overview Source: https://www.vistasoft.com.br/api/imoveis This section provides a high-level overview of the available API resources and their associated functionalities, including general API documentation, client management, and property management. It lists the main categories and their sub-operations, along with the API base URLs. ```APIDOC API Documentation: - API Doc - Como Integrar: - Quickstart Guide - Métodos - Parâmetros dos métodos - Clientes: - Pesquisar clientes - Pesquisar clientes por corretor - Pesquisar clientes por agencia - Exibir detalhes de um cliente - Exibir os historicos de um cliente - Exibir imóveis favoritos de um cliente - Cadastrar um cliente - Alterar um cliente - Cadastrar o histórico de um cliente - Definir um corretor para um cliente - Saber os campos disponíveis - Enviar leads - Imóveis: - Pesquisar imóveis - Informações importantes - Pesquisar imóveis por corretor - Pesquisar imóveis por agencia - Lista de cidades, bairros, valores, etc.. - Exibir detalhes de um imóvel - Exibir fotos de um imóvel - Exibir anexos de um imóvel - Exibir os historicos de um imóvel - Cadastrar um imóvel - Alterar um imóvel - Cadastrar fotos em um imóvel - Cadastrar documentos em um imóvel - Cadastrar o histórico de um imóvel - Cadastrar o proprietário de um imóvel - Definir um corretor para um imóvel - Saber os campos disponíveis - API List e Teste (Sandbox) API URLs: - Production: http://urldocliente.vistahost.com.br/ (requires request) - Sandbox (for testing): http://sandbox-rest.vistahost.com.br/ ``` -------------------------------- ### API Documentation Navigation and Endpoints Source: https://www.vistasoft.com.br/api/viewpage/apidoc This section outlines the main categories and specific endpoints available within the Vista Software & Internet API documentation, covering general API integration, client management, and property management. ```APIDOC API Doc - Como Integrar: Quickstart Guide Métodos Parâmetros dos métodos Clientes: Pesquisar clientes Pesquisar clientes por corretor Pesquisar clientes por agencia Exibir detalhes de um cliente Exibir os historicos de um cliente Exibir imóveis favoritos de um cliente Cadastrar um cliente Alterar um cliente Cadastrar o histórico de um cliente Definir um corretor para um cliente Saber os campos disponíveis Enviar leads Imóveis: Pesquisar imóveis Informações importantes Pesquisar imóveis por corretor Pesquisar imóveis por agencia Lista de cidades, bairros, valores, etc.. Exibir detalhes de um imóvel Exibir fotos de um imóvel Exibir anexos de um imóvel Exibir os historicos de um imóvel Cadastrar um imóvel Alterar um imóvel Cadastrar fotos em um imóvel Cadastrar documentos em um imóvel Cadastrar o histórico de um imóvel Cadastrar o proprietário de um imóvel Definir um corretor para um imóvel Saber os campos disponíveis API List e Teste (Sandbox) ``` -------------------------------- ### Vista Software & Internet API Endpoint Reference Source: https://www.vistasoft.com.br/api/apidoc A structured overview of the Vista Software & Internet API's main documentation sections and available resources. It lists endpoints for general API integration, client management (e.g., search, details, history, favorites, registration, updates), and property management (e.g., search, details, photos, attachments, history, registration, updates). ```APIDOC API Doc - Como Integrar: Quickstart Guide Métodos Parâmetros dos métodos Clientes: Pesquisar clientes Pesquisar clientes por corretor Pesquisar clientes por agencia Exibir detalhes de um cliente Exibir os historicos de um cliente Exibir imóveis favoritos de um cliente Cadastrar um cliente Alterar um cliente Cadastrar o histórico de um cliente Definir um corretor para um cliente Saber os campos disponíveis Enviar leads Imóveis: Pesquisar imóveis Informações importantes Pesquisar imóveis por corretor Pesquisar imóveis por agencia Lista de cidades, bairros, valores, etc.. Exibir detalhes de um imóvel Exibir fotos de um imóvel Exibir anexos de um imóvel Exibir os historicos de um imóvel Cadastrar um imóvel Alterar um imóvel Cadastrar fotos em um imóvel Cadastrar documentos em um imóvel Cadastrar o histórico de um imóvel Cadastrar o proprietário de um imóvel Definir um corretor para um imóvel Saber os campos disponíveis API List e Teste (Sandbox) ``` -------------------------------- ### Vista Software & Internet API Overview Source: https://www.vistasoft.com.br/api/index This section outlines the general structure and usage guidelines for the Vista Software & Internet API. It specifies the API's RESTful design, JSON data exchange format, required HTTP headers, error handling mechanisms, and the organization of key resources such as clients and properties. ```APIDOC API Base URL: - Client-specific: http://urldocliente.vistahost.com.br/ - Sandbox (for testing): http://sandbox-rest.vistahost.com.br/ Communication Protocol: - RESTful API - Data format: JSON for both request and response - Required Header: "Accept: application/json" - Error Handling: HTTP Status Codes - URL Encoding: Ensure URLs do not contain spaces (e.g., urlencode("Porto Alegre") or Porto+Alegre) Available Resources: 1. API Integration & Quickstart: - Quickstart Guide - Methods - Method Parameters 2. Clients (/api/clientes): - Search Clients - Search Clients by Broker - Search Clients by Agency - Display Client Details - Display Client History - Display Client Favorite Properties - Register a Client - Update a Client - Register Client History - Assign a Broker to a Client - Get Available Fields for Clients - Send Leads 3. Properties (/api/imoveis): - Search Properties - Important Information (related to properties) - Search Properties by Broker - Search Properties by Agency - Lists (cities, neighborhoods, values, etc.) - Display Property Details - Display Property Photos - Display Property Attachments - Display Property History - Register a Property - Update a Property - Register Photos for a Property - Register Documents for a Property - Register Property History - Register Property Owner - Assign a Broker to a Property - Get Available Fields for Properties 4. API List and Test (Sandbox): - Access via /api/apidoc ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.