我正在使用来自 TikTok 的 TikTok SDK 登录用于开发人员门户。https://developers.tiktok.com在我的移动应用程序中。(我们已经注册并拿到了client_id和client_secret)
我能够从 SDK 对用户进行身份验证,但没有用户信息从 TikTok 返回,如用户名、名字、unique_id、followers_count 等。
我们可以使用SDK直接将视频分享到tiktok,但是没有可用的用户信息。
TikTok 在开发者门户上没有太多可用信息,有人可以帮助我吗?
谢谢
即时通讯使用yii2框架
我有从控制器到视图的数组.
public function actionProducts()
{
$product = Yii::$app->httpclient->get('http://localhost/MWSProducts/src/MarketplaceWebServiceProducts/Samples/GetMatchingProductSample.php');
$array1 = str_replace("ns2:","",$product);
$array=json_decode(json_encode(simplexml_load_string($array1)),true);
return $this->render('products',['array'=>$array]);
}
Run Code Online (Sandbox Code Playgroud)
在上面的代码我将xml转换为数组.该$阵列具有阵列和IM通过它来查看名为产品.现在我想在Gridview中的视图中显示该数组,因为即时通讯yii2我无法做到这一点,它说我必须使用一些数据提供者,但我不知道如何做到这一点.
任何人都可以帮我这个如何在gridview中显示数组.谢谢
谢谢你的回答..
实际上它是一个亚马逊产品阵列,我从Product API中获取它,我们无法定义任何预定义属性,如id和all,因为它对每个产品都不同.这是阵列的样子.
Array
(
[GetMatchingProductResult] => Array
(
[0] => Array
(
[@attributes] => Array
(
[ASIN] => 0886467918
[status] => Success
)
[Product] => Array
(
[Identifiers] => Array
(
[MarketplaceASIN] => Array
(
[MarketplaceId] => A21TJRUUN4KGV
[ASIN] => 0886467918
)
)
[AttributeSets] => Array
(
[ItemAttributes] => Array
(
[Author] => Kipling, Rudyard
[Binding] => …Run Code Online (Sandbox Code Playgroud) 我已经成功地使用Amazon在Amazon发布了产品MWS Feeds API。现在,我想使用Products API列出这些产品,但是我遇到了一些错误。我跑GetMatchingProductSample.php。
捕获的异常:找不到所需的参数ASINList响应状态代码:400错误代码:MissingParameter错误类型:发件人请求ID:8bb9c8d1-f48c-495c-be86-89492976b4a9 XML:SenderMissingParameterRequired参数ASINList未找到8bb9c8d1-f48c-495c-be86-89492976b4a9:Header RequestId:8bb9c8d1-f48c-495c-be86-89492976b4a9
码:
<?php
require_once('.config.inc.php');
$serviceUrl = "https://mws-eu.amazonservices.com/Products/2011-10-01";
$config = array (
'ServiceURL' => $serviceUrl,
'ProxyHost' => null,
'ProxyPort' => -1,
'ProxyUsername' => null,
'ProxyPassword' => null,
'MaxErrorRetry' => 3,
);
$service = new MarketplaceWebServiceProducts_Client(
AWS_ACCESS_KEY_ID,
AWS_SECRET_ACCESS_KEY,
APPLICATION_NAME,
APPLICATION_VERSION,
$config);
$request = new MarketplaceWebServiceProducts_Model_GetMatchingProductRequest();
$request->setSellerId(MERCHANT_ID);
// object or array of parameters
invokeGetMatchingProduct($service, $request);
function invokeGetMatchingProduct(MarketplaceWebServiceProducts_Interface $service, $request)
{
try {
$response = $service->GetMatchingProduct($request);
echo ("Service Response\n");
echo ("=============================================================================\n");
$dom = new …Run Code Online (Sandbox Code Playgroud)