公司信息
/companies?Id=17988&size=10&page=0&key=联系我们获取key&country_id=11
PARAMS
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
key | query | string | yes | 联系我们获取 key |
country_id | query | string | yes | 国家 ID |
Id | query | string | no | 股票 Id |
size | query | string | no | 长度 |
page | query | string | no | 页数 从 0 开始的 |
Example Response
json
{
"data": [
{
"Id": 535569573, // 股票Id
"Name": "MALAYAN BANKING BHD", // 公司名称
"Description": "Malayan Banking Bhd. operates as a holding company. The firm engages in the provision of commercial banking and related financial services. It operates through the following segments: Group Community Financial Services (CFS), Group Corporate Banking and Global Markets, Group Investment Banking, Group Asset Management, and Group Insurance and Takaful. The CFS segment offers retail banking services to individual, small, medium enterprise and business banking customers. The Group Insurance and Takaful segment includes underwriting all classes of general and life insurance businesses, offshore investment life insurance business, general takaful and family takaful businesses. The company was founded on May 31, 1960 and is headquartered in Kuala Lumpur, Malaysia.", // 公司简介
"Industry": "Regional Banks", // 行业
"Sector": "Finance", // 分类
"Market": "my", // 市场
"country_id": "42" // 国家ID
}
],
"page": 0, // 页码
"pageSize": 10, // 每页数量
"totalItems": 1070 // 分页总数
}
Example Request
java
import java.io.*;
import okhttp3.*;
public class main {
public static void main(String []args) throws IOException{
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("/companies?Id=17988&size=10&page=0&key=联系我们获取key&country_id=11")
.method("GET", body)
.build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
}
}
php
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => '/companies?Id=17988&size=10&page=0&key=联系我们获取key&country_id=11',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;