Skip to main content

China Trademark Database Search API via CPTMA.COM

CPTMA.COM Official Free China Trademarks Database Search API v1.0

这个项目是 https://CPTMA.com 官方免费中国商标数据库查询API,采用PHP语言,提交查询关键词,返回近似商标查询结果。 查询结果以JSON格式输出。

This project is https://CPTMA.com official free Chinese trademark database search API, using PHP language. Apps submit search a keyword, and the server return similar trademarks query results according to China Trademarks Office Database. The query results are output in JSON format.

Get API Source Code from Github Here.
https://github.com/AbbyChiang/CPTMA.COM/


/**
* Configure tmsearch object
* Copyright http://cptma.com
* By Ray
*/
$tmsearch_obj_config = array
(
'name' => array
(
'required' => false,
'prefix' => '[Applicant Name]'
),
'reg_no' => array
(
'required' => false,
'prefix' => '[Registration Number]'
),
/**
* Configure keyword field
* The prefix is prepended to the inputting keyword
*/
'keyword' => array
(
'visible' => true,
'required' => true,
'prefix' => '[Keyword Search]'
),

/**
* Configure ReCaptcha protection
* Requires an API v2 key pair to function
*
* @see https://developers.google.com/recaptcha
*/
'recaptcha' => array
(
'site_key' => '',
'secret_key' => ''
),

/**
* Configure labels and messages
* Can be used to customize or translate items
*/
'translate' => array
(
'labels' => array
(
'name' => 'Applicant Name',
'keyword' => 'Keyword',
'reg_no' => 'Registration Number',
'recaptcha' => 'ReCaptcha'
),
'errors' => array
(
'code' => '0',
'required' => '%s is required',
'invalid' => '%s is invalid'
),
'messages' => array
(
'error' => 'We have encountered an unknown error, please try again.',
'success' => 'The retrieval was successful and the result will be sent to your mailbox shortly.'
)
)
);

/**
* Load tmsearch class and its dependencies
* Create new class object with given configuration
*/
require __DIR__ . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR . 'tmsearch-obj.php';
$tmsearch_obj = new TMSearch_Obj($tmsearch_obj_config);

?>
<?php

Comments

Popular posts from this blog

Foshan Nanhai Prettywood Co., Ltd. - 25 year doors

via IFTTT

Techsite.io: How Casement Windows Can Add Value to Your Home?

How Casement Windows Can Add Value to Your Home? Replacing windows or installing new windows at home can be done due to many factors. Transform your house by adding windows that are energy savers as well as provide you comfort at home. Whether you live in high humidity or freezing temperatures, installing the right kind of windows help you survive in adverse weather conditions. Adding new windows can add curb appeal and increase the overall value of your home. Casement windows are one of the popular types of windows used in the Uk and were first appeared around the 18th century. Casement windows are ones that swing out from the side and can be installed as a single-window as well. They work well in places like kitchen sinks and countertops, where you cannot easily push a window sash up. The sash creates an airtight seal against the window frame when closed making it impossible for air to pass through. You can choose UPVC or Aluminium material and get the custom design windows for uniqu...

China WDMA: WHAT DO YOU NEED TO KNOW ABOUT STANDARD WINDOW SIZES?

  By standard window sizes, we are saying window sizes that fits most of the openings of most buildings. To turn it another words, you could be easier to get them in most of windows manufacturers, not only spend more money to look for customized size windows. Windows types are named after its frame materials or its opening ways. Take opening ways or styles as examples, we would like to introduce some of commonly seen windows types and their standard sizes to help with your projects. STANDARD PICTURE WINDOW SIZES Fixed windows, or called  picture windows,  are those windows that cannot be opened, it doesn’t matter they are in regular shapes or specialty shapes (like half-circle). Fixed windows are the most energy efficient windows. They don't require maintenance and cost-friendly. You could find widely used in living room, bedroom and other places. The standard picture window sizes go from 24 inches to 96 inches for width, and their height goes from 12 inches to 96 inches....