当前位置: 首页>>代码示例>>PHP>>正文


PHP Sites::postSitesUsers方法代码示例

本文整理汇总了PHP中Sites::postSitesUsers方法的典型用法代码示例。如果您正苦于以下问题:PHP Sites::postSitesUsers方法的具体用法?PHP Sites::postSitesUsers怎么用?PHP Sites::postSitesUsers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Sites的用法示例。


在下文中一共展示了Sites::postSitesUsers方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

echo $metaRequest->getMetaData('PersistedData');
// PARSE
$r = $docRequest->getDocIndexFields('3c7168e7-4b82-e511-bf04-008cfa482110');
$s = $docRequest->getDocIndexFieldsId('3c7168e7-4b82-e511-bf04-008cfa482110', '6684bdbe-4f82-e511-bf04-008cfa482110');
echo $parseRequest->parseResponse($r, 'label');
$a = $parseRequest->parseListResponse($r, 'label', '5');
// PERSISTED DATA
echo $pdataRequest->deletePdata('7832c856-7467-4356-a56e-968f9db56f48');
echo $pdataRequest->getPdata();
echo $pdataRequest->getPdataId('17bd31bb-6cd6-43b0-be65-55e2002d91a6');
echo $pdataRequest->postPdata('phpPDATA4', 1, "{\"DataField2\":\"claro que si\",\"DataField4\":\"oh no no no\"}", 'text/JSON', '', 0, null);
echo $pdataRequest->postFormPdata('9d4d2408-1183-e511-bf05-9c4e36b08790', 'c054e3bb-bd4c-4185-8d45-cf062d369a66', '6ccf5264-4f8d-e511-bf05-9c4e36b08790');
// SITES
echo $sitesRequest->getSites();
echo $sitesRequest->getSitesId('2e2fbf9c-1079-e511-bf01-a1bb68598c42');
echo $sitesRequest->getSitesGroups('2e2fbf9c-1079-e511-bf01-a1bb68598c42');
echo $sitesRequest->getSitesGroupsId('2e2fbf9c-1079-e511-bf01-a1bb68598c42', 'b9a66abf-2b83-e511-bf05-9c4e36b08790');
echo $sitesRequest->getSitesUsers('2e2fbf9c-1079-e511-bf01-a1bb68598c42');
echo $sitesRequest->getSitesUsersId('2e2fbf9c-1079-e511-bf01-a1bb68598c42', '8dd06446-1179-e511-bf01-a1bb68598c42');
echo $sitesRequest->postSites('phpFUN2', 'a new php site');
echo $sitesRequest->postSitesGroups('4d35d7ea-e383-e511-bf05-9c4e36b08790', 'phpFUN2 Group', 'a description');
echo $sitesRequest->postSitesUsers('4d35d7ea-e383-e511-bf05-9c4e36b08790', 'phpUser3', 'php', 'Name', 'php@aol.com', 'password');
echo $sitesRequest->putSites('4d35d7ea-e383-e511-bf05-9c4e36b08790', 'new Php Name 2', 'new description');
echo $sitesRequest->putSitesGroups('4d35d7ea-e383-e511-bf05-9c4e36b08790', '6aadfd0e-e483-e511-bf05-9c4e36b08790', 'new Php Group 3', 'new description 3');
echo $sitesRequest->putSitesUsers('4d35d7ea-e383-e511-bf05-9c4e36b08790', 'd998fc72-e583-e511-bf05-9c4e36b08790', 'new php 3', 'new Name 3', 'NEW3php@aol.com');
// USERS
echo $usersRequest->getUsers();
echo $usersRequest->getUsersId('5eefec33-ca71-e511-befe-98991b71acc0');
echo $usersRequest->getUsersToken('5eefec33-ca71-e511-befe-98991b71acc0');
echo $usersRequest->postUsers('4d35d7ea-e383-e511-bf05-9c4e36b08790', 'userUser2', 'first', 'last', 'dot2@aol.com', 'pass');
echo $usersRequest->putUsers('7eb29bd0-ef83-e511-bf05-9c4e36b08790', 'new first 2', 'new last', 'NEWdot3@aol.com');
开发者ID:VisualVault,项目名称:php-rest-client-library,代码行数:31,代码来源:requests.php


注:本文中的Sites::postSitesUsers方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。