"" For Yahoo Japan API Parsing (PHP), my little brother I do a shopping network (Yahoo Japan, Rakuten), ask the master to help resolve their two API

Source: Internet
Author: User
"Online and so on" to seek Yahoo Japan API parsing (PHP), I do a shopping network (Yahoo Japan, Rakuten), seeking expert help to resolve their two API.
Ask Yahoo Japan API parsing (PHP), I do a shopping network (Yahoo Japan, Rakuten), seeking expert help to resolve their two API. This API does not know how, always get no results!
------Solution--------------------
Translate with Google

Request URL
Xml
Http://dir.yahooapis.jp/Category/V1/Category
The directory tree provides the ability to display category tree and Yahoo website classification registration data.
Request parameters

"Building a Rest request (GET)" please see.
Parameter Value Description
The AppID (must) string application ID. For more information please click here to visit.
ID (mandatory or path) integer identifies the category page. If both paths and precedence numbers are specified.
The path (or ID or required) of the string URL is subtracted from the "http://dir.yahoo.co.jp" category page. If these two IDs and precedence numbers.
Type integer: 0 (default) 0: Data category and site data.
1: Only data categories.
2: Only the data of the website.
Expand integers: 0 (default) "Area News" in the following classes are "propagation" of the use process called, which also summarizes the following different areas of the same type of name registered sites
(such as "Sanchong County > Indoor Five people Football" in the case "triple" exists in "ise > Indoor Five people football", "scale > Soccer" into the site, such as registering a single view of the category).
If you want to enable propagation, one is specified.
Sample Request URL
http://dir.yahooapis.jp/category/v1/category of AppID = &id = 2075288777
Response field

For a description of the schema of the Web API for the directory tree, please visit the following URL. Http://dir.yahooapis.jp/Category/V1/CategoryResponse.xsd
field Data type description
Categoryresult the result request.
Status and response messages from the server.
Args sets the parameters passed to the API. It is composed of several amino acids.
Arginine string name (string) name parameter. The parameter of the value (string) value.

Error when an incorrect API description occurs. Made up of multiple errors.
The error string describes the error.
The category of spatial information.
Identifies the integer class ID.
Parent integer ID of the parents class.
depth integers from the top-level class, the depth of the class hierarchy.
Title string category name.
Jtitle string Read the name of the class.
The path string from the category page is excluded by Yahoo Japan provided URL, "http://dir.yahoo.co.jp".
Jpath string by Yahoo Yahoo Japan, page "classpath (breadcrumbs)" provided by the category string.
The spath string displays a hierarchy with an ID class.
Creates a date for a string or a site that has been registered, the category was created. "YYYYMMDD" format.
Category categories and shortcuts, set from below for a type of link. This includes more than 0 of An element.
Website the category of Yahoo website registration. This includes more than 0 of An element.
Counts the number of integers.
Item Accelerator sub-category or category, alphabetical index, and information about the registered Web site (listed below).
Type String Category: Represents the lower bound category. Links: Express Categories (categories of shortcuts, when you enter the category in the tree category, and Tadori through the top of Kenai is not). Web site: Indicates that this is a registered Web site in this category. Leaf: Indicates that the category is processed as a registered Web site. Link_leaf: Indicates that the registration site will be treated as a shortcut to the class. Index: Although many sites are registered in the category, to split the site (alphabetical index) Index setting registration, the registered site is divided. If you call such a class, the type is "exponential", which is more than the value of the item, with the data type returned by the registered Web site. In this case, (the ) the split page ID ( ) that represents the index ( ) contains the name of the data.





identifies an integer when type = is classified as a classification number.
Link Integer when type = Class?? " 0 ". When the link is, the category ID shortcut itself. The
path string from the Yahoo website URL is excluded by the category "http://dir.yahoo.co.jp" provided by Yahoo Japan.
Title String class name (type = category, when type = link), Site name registration (when type = website).
Jtitle String Read the category name (type = category, when type = link), please read the site name registration (when type = Web site).
URL string when type = website, website registered Web site. URL display (display URL).
Clickurl string when type = site, link to the URL of the registered website (click). The
Summary string describes the registered Web site. The
created date of the string or the date that the site was registered, the category was created. "YYYYMMDD" format.
New integer In the past week, "1", otherwise "0" the newly registered website. The
Cool integer yahoo classification own standards, good content, are called "1", otherwise "0" website.
Sample Response

Here, ID = 2075288777 is the response to the request.

Error

The directory tree is a common web API for Yahoo Japan website API messages and error codes returned.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.