Showing posts with label api. Show all posts
Showing posts with label api. Show all posts

Friday, June 16, 2023

OpenAI Upgrades GPT-4 and GPT-3.5 Turbo , Reduces API Prices

OpenAI is upgrading its text-generating models while reducing pricing. OpenAI announced the release of new versions of GPT-3.5-turbo and GPT-4, the latter being its latest text-generating AI, with a capability called function calling. As OpenAI explains, function calling allows developers to describe programming functions to GPT-3.5-turbo and GPT-4 and have the models create code to execute those functions.


Thursday, April 27, 2023

Building Applications Using the ChatGPT API

Step 0: Create an OpenAI account and log into an account

Step 1: After login,  click on PERSONAL on the top-right and then click "View API keys"


Step 2: After following step 2 a page of API keys is opened and we can see the button ‘Create new secret key’ click on that and a secret key is generated copy that key and save it on Notepad or anywhere else because it is required in upcoming steps.


Step 3: Perform API call to url: https://api.openai.com/v1/chat/completions , you can provide "model"  (GPT 3.5 or 4) as params


Thursday, November 17, 2022

Integration with Emission Calculator API and Freight API to auto data connection to reporting server 24/7

 Integration Project 2023:

  1. Data Connect by API of Freight Company.
  2. Emission Calculation via API.
  3. Air / Road / Rail / Ocean Freight business.
  4. Integration with Forwarder.
  5. List / Ranking of top travel distance vs emission in 2022 , 2021 and 2020
  6. Dashboard integration, management team access control and supplier access control.
  7. Science based targets toward netzero road map

Thursday, March 24, 2022

ESG and Sustainability Platform for Data Collection and Report new version 3 released

  • SDGs areas data collection and reporting.
  • Module-based over SDGs.
  • Highly customize reporting tools.
  • Web-based data entry, Excel data import, Restful-API support, Online Cloud drive feed.
  • Advanced Dashboard / Report integration.
  • World-wide Emission Factors feed.
  • Multi-National Cooperate structure integration.
  • Single-Sign-On (SSO).
  • Connected to various cloud platform data providers.
  • Integration with the BI data visualization tools Google Data Studio and Microsoft Power BI .
  • Customization for cooperate infrastructure.
  • Automation of converting and transferring and feeding existing routine information to platform. 
  • Total integration solution and consultation services.
  • Multi-Language UI and localization - English, French, Spanish, Italiano, Deutsch, Japanese, Korean,  Traditional Chinese, Simplified Chinese.
  • Local business data-set dictionary .
  • Preserve data migration from old platform to latest.




Tuesday, June 2, 2020

EC-Ship/ Speedpost API Developer

What is API ?
  • Application Programming Interface (API) is a set of Web Services interfaces for the exchange of mail delivery orders and the associated data with third-parties computer systems.
  • For example, with EC-Ship API, your systems can communicate directly with EC-Ship system for performing specific operations, such as, creating posting items, generating address packs, calculating postage charges and tracing items.
  • Your applications can automate the preparation and processing of mail delivery orders in meeting your business needs by using appropriate interface functions.
  • EC-Ship/ Speedpost API is available to Hongkong Post customers free of charge.


Potential Users for API
e-Commerce providers and their partners are potential users of API in providing integrated services for their clients through interfacing their websites to EC-Ship or My Speedpost system. High volume mailers will be able to handle their postings with speed and efficiency.
Pre-requisites of Using EC-Ship API
  • Technical Skills
    Users of API must be familiar with Web Services and have / engage IT development resources to build your own interface programs.
    If users would like to use EC-Ship API, they shall successfully complete the testing of their programmed interfaces at EC-Ship testing environment in accordance with our requirements.
    If users would like to use Speedpost API, they shall successfully complete the testing of their programmed interfaces at My Speedpost testing environment.
  • Business Understanding
    We recommend users of to take a closer look into the products and services offered at EC-Ship/ Speedpost platform. A clear understanding of the features will also help you to get familiar with the API effectively. You may get more details below:
    EC-Ship https://ec-ship.hongkongpost.hk
    My Speedpost https://speedpost.hongkongpost.hk/mailing/soaz/login.jsp

Delivery Services Available Through Trackable API
Currently, Trackable API supports the following delivery services:
  • e-Express Services
  • Air/Surface Registered Mail
  • Air/Surface Parcel Mail
  • Speedpost (Standard Service)
  • Smart Post
  • Local CourierPost (Counter Collection)
  • Local Parcel

Delivery Services Available Through Speedpost API
Currently, Speedpost API supports the following delivery services:
  • Standard Service
  • MultiPack Service
  • Freight Service
  • Next Flight Out Service
  • EC Post Service
  • Economy Express Service

Delivery Services Available Through (Bulk Mailing) Posting API
Currently, (Bulk Mailing) Posting API supports the following delivery services:
  • Bulk Air Mail
  • Direct Agent Bag
  • Identical mails not less than 100 in number
  • International Periodicals
  • Lightweight Air Mail Items
  • Lightweight Surface Mail Items
  • Local Bulk Mail
  • Local Periodicals

Delivery Services Available Through iMail Posting API
Currently, (iMail) Posting API supports the following delivery services:
  • iMail


什麼是 API ?
  • API 可將客戶的郵件及相關資料,由客戶的電腦系統直接連繫到香港郵政投寄易或特快專遞平台。
  • 例如透過投寄易 API ,客戶的電腦系統可直接對投寄易平台作以下操作: 新增郵件工作單、列印郵寄標籤、計算不同郵遞服務的郵費及郵件追查。
  • 客戶可根據貴公司實際需要去使用這些 API ,達致預備及處理郵件全面自動化。
  • 投寄易/ 特快專遞 API 是免費提供給香港郵政客戶的。


誰會使用投寄易 API ?
電子商貿供應商及其合作伙伴可使用這 API 將公司網站連繫投寄易/ 特快專遞平台,來提供客戶一站式綜合服務。另外,大量郵件投寄者都可使用這些介面來提高工作效率。
使用API 的先決條件
  • 電腦技術要求
    首先,用戶必須要熟悉 ”Web 服務” 編寫程式要求,亦需要投放編程資源去開發這 API 。
    如需使用投寄易API,用戶必須要配合投寄易測試平台所定的要求,及成功完成測試才可
    如需使用特快專遞API,用戶必須要配合特快專遞測試平台所定的要求,及成功完成測試才可
  • 理解投寄易/特快專遞平台所提供的服務
    我們建議用戶去詳細理解現在投寄易/特快專遞平台所提供的產品及服務。這樣可幫助用戶更快、更有效去運用API 。詳情請瀏覽
    投寄易平台網站https://ec-ship.hongkongpost.hk
    我的特快專遞網站https://speedpost.hongkongpost.hk/mailing/soaz/login.jsp

可追查郵件 API 所支援的郵遞服務
可追查郵件 API 現在支援以下的郵遞服務:
  • 易網遞(e-Express) 服務
  • 空郵/平郵掛號郵件
  • 空郵/平郵包裹郵件
  • 特快專遞 (標準服務) 郵件
  • 「易送遞」郵件
  • 本地郵政速遞郵件 (櫃位領取)
  • 本地包裹

特快專遞 API 所支援的郵遞服務
特快專遞 API 現在支援以下的郵遞服務:
  • 標準服務
  • 萬用箱服務
  • 貨運服務
  • 瞬時達服務
  • e-郵寶服務
  • 經濟快遞服務

(大量投寄)投寄 API 所支援的郵遞服務
(大量投寄)投寄 API 現在支援以下的郵遞服務:
  • 大量投寄空郵郵件
  • 大量投寄本地郵件
  • 大量投寄輕郵件(空郵)
  • 大量投寄輕郵件(平郵)
  • 代寄商郵袋(平郵印刷品專袋)
  • 本地定期刊物服務
  • 國際定期刊物服務
  • 不少於100件的相同郵件

(易網郵)投寄 API 所支援的郵遞服務
(易網郵)投寄 API 現在支援以下的郵遞服務:
  • 易網郵

Monday, June 1, 2020

Cloud Translation Basic (v2) request with curl - Make a Translation API request

Make a Translation API Request using a REST method call to the v2 translate method.

Use curl to make a request to the https://translation.googleapis.com/language/translate/v2 endpoint.

The curl command includes JSON with the text to be translated (q), the language to translate from (source), and the language to translate to (target).

The source and target languages are identified using the ISO-639-1 codes. The source language is English (en) and the target language is Spanish (es). The format of the query is noted as "text" for plain text.

The sample curl command uses the gcloud auth application-default print-access-token command to get an authentication token.

curl -s -X POST -H "Content-Type: application/json" \
    -H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \
    --data "{
  'q': 'The Great Pyramid of Giza (also known as the Pyramid of Khufu or the
        Pyramid of Cheops) is the oldest and largest of the three pyramids in
        the Giza pyramid complex.',
  'source': 'en',
  'target': 'es',
  'format': 'text'
}" "https://translation.googleapis.com/language/translate/v2"


  Source: https://cloud.google.com/translate/docs/basic/setup-basic

Friday, May 29, 2020

Environmental Management System and API token driven json dataset, Monitoraggio del consumo di risorse in base alla posizione, 監視每個位置的資源消耗,消耗類型

  • online / cloud based system monitoring of resources consumption on a per-location basis, consumption types include :-
    • Electricity Consumption
    • Fuel Consumption
    • Gas Consumption
    • Lubricant / Refrigerant / Steam / Material / Paper Consumption 
    • Business Travel analysis
    • Air / Road / Sea Freight Logistics Consumption
    • Social Responsibility Dataset
    • Health & Safety Summary
    • CSR and Environment Investment
  • Collection of Waste Management data
  • Highly customizable time-series data (e.g. No of staff, Productivity, total office area)
  • Social Survey/Questionnaire 
  • Risk Management
  • Multi-Domain / Department structure support from SME to multi-nations organization
  • WYSIWYG dashboard admin
  • Multi-Lingual (English, Japanese, Franch, Spanish, Trad/Simp Chinese, etc)
  • API data CRUD
  • Misc Configuration - Currencies, Counties, IATA, Emission factors, Themes,
  • Variance check
  • User Management and module-based access control
  • Yearly-based Emission Factor for consumptions
  • Reporting on consumption and cost
  • Reporting on CO2/NOX/SOX/PM Emission
  • Reporting on Intensity/Target/Year-on-year based
  • Record and Document Management on
    • Investments in Environmental Projects
    • Environmental Issues and Non Compliance Records
    • Training Records
    • Environmental Audits

監視每個位置的資源消耗,消耗類型包括:
用電量
燃油消耗
耗氣量
潤滑劑/製冷劑/蒸汽/材料/紙張消耗
商務旅行分析
空/陸/海貨運物流消耗
社會責任數據集
健康與安全摘要
企業社會責任與環境投資
廢物管理數據收集
高度可定制的時間序列數據(例如,員工人數,生產率,總辦公面積)
社會調查/問卷
風險管理
從中小企業到跨國組織的多域/部門結構支持
所見即所得的儀表板管理員
多國語言(英語,日語,法語,西班牙語,繁體/簡體中文等)
API數據CRUD
其他配置-貨幣,縣,IATA,排放因子,主題,
差異檢查
用戶管理和基於模塊的訪問控制
年度年度排放因子
消耗和成本報告
關於CO2 / NOX / SOX / PM排放的報告
基於強度/目標/同比的報告
記錄和文件管理
環保項目投資
環境問題和違規記錄
訓練記錄
環境審核
Surveillance de la consommation des ressources par emplacement, les types de consommation comprennent: -
La consommation d'électricité
Consommation de carburant
Consommation de gaz
Lubrifiant / réfrigérant / vapeur / matériel / consommation de papier
Analyse des voyages d'affaires
Consommation logistique de fret aérien / routier / maritime
Ensemble de données sur la responsabilité sociale
Résumé sur la santé et la sécurité
Investissement RSE et Environnement
Collecte de données sur la gestion des déchets
Données de séries chronologiques hautement personnalisables (par exemple, nombre d'employés, productivité, surface totale de bureau)
Enquête sociale / Questionnaire
Gestion des risques
Support de structure multi-domaine / département de la PME à l'organisation multi-nations
Administrateur du tableau de bord WYSIWYG
Multilingue (anglais, japonais, français, espagnol, chinois traditionnel / chinois simp, etc.)
API data CRUD
Configurations diverses - devises, comtés, IATA, facteurs d'émission, thèmes,
Contrôle d'écart
Gestion des utilisateurs et contrôle d'accès basé sur les modules
Facteur d'émission annuel pour les consommations
Reporting sur la consommation et les coûts
Rapports sur les émissions de CO2 / NOX / SOX / PM
Rapports sur l'intensité / la cible / sur une base annuelle
Gestion des enregistrements et des documents sur
Investissements dans des projets environnementaux
Dossiers sur les problèmes environnementaux et la non-conformité
Dossiers de formation
Audits environnementaux
监视每个位置的资源消耗,消耗类型包括:
用电量
燃油消耗
耗气量
润滑剂/制冷剂/蒸汽/材料/纸张消耗
商务旅行分析
空/陆/海货运物流消耗
社会责任数据集
健康与安全摘要
企业社会责任与环境投资
废物管理数据收集
高度可定制的时间序列数据(例如,员工人数,生产率,总办公面积)
社会调查/问卷
风险管理
从中小企业到跨国组织的多域/部门结构支持
所见即所得的仪表板管理员
多国语言(英语,日语,法语,西班牙语,繁体/简体中文等)
API数据CRUD
其他配置-货币,县,IATA,排放因子,主题,
差异检查
用户管理和基于模块的访问控制
年度年度排放因子
消耗和成本报告
关于CO2 / NOX / SOX / PM排放的报告
基于强度/目标/同比的报告
记录和文件管理
环保项目投资
环境问题和违规记录
训练记录
环境审核
Kaynak tüketiminin yere göre izlenmesi, tüketim türleri şunları içerir:
Elektrik tüketimi
Yakıt tüketimi
Gaz tüketimi
Yağlayıcı / Soğutucu / Buhar / Malzeme / Kağıt Tüketimi
İş Seyahati analizi
Hava / Yol / Deniz Taşımacılığı Lojistik Tüketimi
Sosyal Sorumluluk Veri Kümesi
Sağlık ve Güvenlik Özeti
KSS ve Çevre Yatırımı
Atık Yönetimi verilerinin toplanması
Son derece özelleştirilebilir zaman serisi verileri (örn. Personel sayısı, Verimlilik, toplam ofis alanı)
Sosyal Anket / Anket
Risk yönetimi
KOBİ'lerden çok uluslu kuruluşlara Çok Alanlı / Departman yapısı desteği
WYSIWYG kontrol paneli yöneticisi
Çok Dilli (İngilizce, Japonca, Franch, İspanyolca, Trad / Simp Çince, vb.)
API verileri CRUD
Çeşitli Yapılandırma - Para Birimleri, İlçeler, IATA, Emisyon faktörleri, Temalar,
Varyans kontrolü
Kullanıcı Yönetimi ve modül tabanlı erişim kontrolü
Tüketim için Yıllık Bazlı Emisyon Faktörü
Tüketim ve maliyet raporlaması
CO2 / NOX / SOX / PM Emisyonu Hakkında Raporlama
Yoğunluk / Hedef / Yıllık bazda raporlama
Kayıt ve Belge Yönetimi
Çevre Projelerine Yatırımlar
Çevre Sorunları ve Uygunsuzluk Kayıtları
Eğitim kayıtları
Çevresel Denetimler
ロケーションごとのリソース消費のモニタリング。消費タイプには次のものが含まれます。
電力消費
燃費
ガス消費
潤滑油/冷媒/蒸気/素材/紙の消費
出張分析
航空/道路/海上貨物の消費
社会的責任データセット
健康と安全の概要
CSRと環境投資
廃棄物管理データの収集
高度にカスタマイズ可能な時系列データ(例:スタッフ数、生産性、総オフィス面積)
社会調査・アンケート
危機管理
中小企業から多国籍組織へのマルチドメイン/部門構造のサポート
WYSIWYGダッシュボード管理者
多言語対応(英語、日本語、フランス語、スペイン語、繁体字/簡体字中国語など)
APIデータCRUD
その他の構成-通貨、郡、IATA、排出係数、テーマ、
分散チェック
ユーザー管理とモジュールベースのアクセス制御
消費量の年間ベースの排出係数
消費とコストの報告
CO2 / NOX / SOX / PM排出量の報告
強度/ターゲット/前年ベースのレポート
の記録とドキュメントの管理
環境プロジェクトへの投資
環境問題とコンプライアンス違反の記録
研修記録
環境監査
Monitoraggio del consumo di risorse su base per località, i tipi di consumo includono: -
Consumo elettrico
Consumo di carburante
Consumo di gas
Consumo di lubrificante / refrigerante / vapore / materiale / carta
Analisi dei viaggi d'affari
Consumo di logistica di trasporto aereo / stradale / marittimo
Set di dati sulla responsabilità sociale
Riepilogo salute e sicurezza
CSR e investimenti ambientali
Raccolta di dati sulla gestione dei rifiuti
Dati di serie temporali altamente personalizzabili (ad es. Numero di dipendenti, produttività, area ufficio totale)
Social Survey / Questionnaire
Gestione del rischio
Supporto della struttura multi-dominio / dipartimento dalle PMI all'organizzazione multi-nazione
Amministratore dashboard WYSIWYG
Multilingue (inglese, giapponese, francese, spagnolo, cinese tradizionale / ecc.)
Dati API CRUD
Configurazione mista: valute, contee, IATA, fattori di emissione, temi,
Controllo della varianza
Gestione utenti e controllo degli accessi basato su moduli
Fattore di emissione su base annua per i consumi
Segnalazione di consumi e costi
Segnalazione delle emissioni di CO2 / NOX / SOX / PM
Rapporti su intensità / obiettivo / anno su anno
Gestione record e documenti attivata
Investimenti in progetti ambientali
Problemi ambientali e record di non conformità
Record di allenamento
Audit ambientali

Thursday, May 28, 2020

eBay API Retail-Standard Selling (Sell API) Traditional Selling (Trading API)

APIs for Selling Inventory on eBay  Retail-Standard Selling (Sell API) Traditional eBay Selling (Trading API)

eBay’s selling APIs enable retailers and third party developers (acting on behalf of retailers) to manage all aspects of their eBay business by programmatically integrating with eBay’s selling infrastructure. These include end-to-end capabilities for:

Inventory and listing management
Order management and fulfillment
Post-order process management (returns, refunds, cancellations)
Marketing campaign management
Performance reports
eBay metadata (site, category, catalog)
Managing communication with buyers and eBay
eBay provides a range of integration options based on retailer needs. In 2016, we introduced a new suite of retail-standard Sell APIs, providing a major advancement from our Trading APIs (designed over 10 years ago). While we will continue to support Trading APIs for existing integrations, all new integrations must choose between the new and traditional models for core selling capabilities.

More at https://developer.ebay.com/


无论你想要建立一个全新的eBay业务,还是通过寻找新客户、建立潜在的新收入流来扩展你的现有业务,eBay平台都为你提供了前所未有的良机。充分利用 eBay开发者计划的资源,可以让你借此进军拥有超过两亿用户的eBay市场,满足eBay上买卖双方对于工具和服务的多种需求。

eBay API 概览: 了解哪些API适合你的应用程序。



eBay 的 Web Services
搜索
eBay Finding API 允许应用程序使用eBay的下一代搜索平台搜索eBay商品。



卖家
eBay Trading API 提供对eBay私人数据的认证访问,并依此实现下列功能的自动同步和更新:刊登商品、检索卖家销售状态、管理售后服务信息、管理私人eBay用户信息如My eBay和Feedback的细节。

eBay Large Merchant Services 提供了基于file的大批量交易异步执行。它包含了更适用于交易流程的功能,特别是在库存管理和交易履行上。

eBay Best Match Item Details API 提供对eBay私人数据的认证访问,使卖家了解影响搜索排名结果的因素。这个API允许卖家获取一个给定关键字的商品排名,标示某一类中需要改进的商品,分享给定关键字的首页排名分析。

Open eBay Apps 属于下一级的平台集成,开发者可以用此API将他们的应用程序嵌入平台,方便卖家直接在eBay.com站点打理生意。

Product Services 提供卖家使用Parts Compatibility刊登商品所需要的信息。Parts Compatiblity使用结构化数据关联eBay上所列带有兼容属性的各种商品。例如,可以通过Parts Compatibility特性,全面、准确的找到头灯或车辆边缘符合要求的所有车辆。

Research APIs for eBay 可用来检索eBay的历史数据。eBay的Research API包括:

Price Research API: 对 non-commercial 使用,提供每月至多1000次的免费使用。
Advanced Research API: 适用于从DataUnison中获取的 license 。

买家
eBay Shopping API 提供公开的只读数据,例如商品搜索、eBay产品、eBay用户档案、热门eBay商品和热门搜索。

eBay Merchandising API 提供up-sell和cross-sell所需要的eBay产品或商品信息。


用户
eBay Feedback API 可以让用户方便的管理账户层级的反馈数据,特别是Detailed Seller Ratings (DSRs)信息。

Tuesday, May 26, 2020

about HSBC Hong Kong APIs

 about HSBC Hong Kong APIs
API stands for "application programming interface". Open APIs (or commonly known as Open Banking) is a new development where major financial institutions openly share certain details about their products and services. Developers can use this information to build apps and widgets that help customers compare the products and services offered by different banks.

Source: https://developer.hsbc.com.hk/#/support

Tuesday, May 12, 2020

Google Map Platform: Distance Matrix API

The Distance Matrix API is a service that provides travel distance and time for a matrix of origins and destinations

Sample request and response
You access the Distance Matrix API through an HTTP interface, with requests constructed as a URL string, using origins and destinations, along with your API key.

The following example requests the distance matrix data between Washington, DC and New York City, NY, in JSON format:

https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=Washington,DC&destinations=New+York+City,NY&key


Information from: https://developers.google.com/maps/documentation/distance-matrix/intro

Friday, April 24, 2020

How to integrate Salesforce with Ruby on Rails ROR

Salesforce integration with Ruby on Rails ROR is popular topics. Both Salesforce and Ruby on Rails ROR are popular in US and the world.

First, need to create connected app in Salesforce. To create Connected Apps in Salesforce:

  1. Login Salesforce as administrator.
  2. Drop-down list of the account (upper-right), select Setup. 
  3. Left-hand pane, App Setup > Create >Apps.
  4. Connected Apps panel, click "New".
  5. Fill in basic info: App Name - demo REST, API name. REST_Demo and contact email


Thursday, April 23, 2020

Test and run production with API integration by using POSTMAN

Send Requests and View Responses
Create and execute any REST, SOAP, and GraphQL queries from within Postman.

Define complex requests
Send any type of request in Postman. Create and save custom methods and send requests with the following body types:

URL-encoded—The default content type for sending simple text data
multipart/form-data—For sending large quantities of binary data or text containing non-ASCII characters
Raw body editing—For sending data without any encoding
Binary data—For sending image, audio, video, or text files
Get up and running in seconds
Instead of creating calls manually to send over the command line, all you need is a Postman Collection. Import a collection directly or generate one with one click from:

An API schema in the RAML, WADL, OpenAPI, or GraphQL format
A data file containing the cURL commands
Inspect Responses
View the status code, response time, and response size. Postman's automatic language detection, link and syntax highlighting, search, and text formatting make it easy to inspect the response body.

More detail here: https://www.postman.com/product/api-client