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


PHP MozuUrl::formatUrl方法代码示例

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


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

示例1: updateLocationUsageUrl

 /**
  * Get Resource Url for UpdateLocationUsage
  * @param string $code User-defined code that uniqely identifies the channel group.
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @return string Resource Url
  */
 public static function updateLocationUsageUrl($code, $responseFields)
 {
     $url = "/api/commerce/settings/locationUsages/{code}?responseFields={responseFields}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "PUT", false);
     $url = $mozuUrl->formatUrl("code", $code);
     $url = $mozuUrl->formatUrl("responseFields", $responseFields);
     return $mozuUrl;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:14,代码来源:LocationUsageUrl.php

示例2: getUserUrl

 /**
  * Get Resource Url for GetUser
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @param string $userId Unique identifier of the user whose tenant scopes you want to retrieve.
  * @return string Resource Url
  */
 public static function getUserUrl($responseFields, $userId)
 {
     $url = "/api/platform/adminuser/accounts/{userId}?responseFields={responseFields}";
     $mozuUrl = new MozuUrl($url, UrlLocation::HOME_POD, "GET", false);
     $url = $mozuUrl->formatUrl("responseFields", $responseFields);
     $url = $mozuUrl->formatUrl("userId", $userId);
     return $mozuUrl;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:14,代码来源:AdminUserUrl.php

示例3: updateDocumentTypeUrl

 /**
  * Get Resource Url for UpdateDocumentType
  * @param string $documentTypeName The name of the document type to retrieve.
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @return string Resource Url
  */
 public static function updateDocumentTypeUrl($documentTypeName, $responseFields)
 {
     $url = "/api/content/documenttypes/{documentTypeName}?responseFields={responseFields}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "PUT", false);
     $url = $mozuUrl->formatUrl("documentTypeName", $documentTypeName);
     $url = $mozuUrl->formatUrl("responseFields", $responseFields);
     return $mozuUrl;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:14,代码来源:DocumentTypeUrl.php

示例4: deleteOptionUrl

 /**
  * Get Resource Url for DeleteOption
  * @param string $attributeFQN The fully qualified name of the attribute, which is a user defined attribute identifier.
  * @param string $productCode Merchant-created code that uniquely identifies the product such as a SKU or item number. Once created, the product code is read-only.
  * @return string Resource Url
  */
 public static function deleteOptionUrl($attributeFQN, $productCode)
 {
     $url = "/api/commerce/catalog/admin/products/{productCode}/Options/{attributeFQN}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("attributeFQN", $attributeFQN);
     $url = $mozuUrl->formatUrl("productCode", $productCode);
     return $mozuUrl;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:14,代码来源:ProductOptionUrl.php

示例5: refreshUserAuthTicketUrl

 /**
  * Get Resource Url for RefreshUserAuthTicket
  * @param string $refreshToken Alphanumeric string used for access tokens. This token refreshes access for accounts by generating a new developer or application account authentication ticket after an access token expires.
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @return string Resource Url
  */
 public static function refreshUserAuthTicketUrl($refreshToken, $responseFields)
 {
     $url = "/api/commerce/customer/authtickets/refresh?refreshToken={refreshToken}&responseFields={responseFields}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "PUT", false);
     $url = $mozuUrl->formatUrl("refreshToken", $refreshToken);
     $url = $mozuUrl->formatUrl("responseFields", $responseFields);
     return $mozuUrl;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:14,代码来源:CustomerAuthTicketUrl.php

示例6: removeTransactionUrl

 /**
  * Get Resource Url for RemoveTransaction
  * @param int $accountId Unique identifier of the customer account.
  * @param string $transactionId Unique identifier of the transaction to delete.
  * @return string Resource Url
  */
 public static function removeTransactionUrl($accountId, $transactionId)
 {
     $url = "/api/commerce/customer/accounts/{accountId}/transactions/{transactionId}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("accountId", $accountId);
     $url = $mozuUrl->formatUrl("transactionId", $transactionId);
     return $mozuUrl;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:14,代码来源:TransactionUrl.php

示例7: deleteOrderNoteUrl

 /**
  * Get Resource Url for DeleteOrderNote
  * @param string $noteId Unique identifier of a particular note to retrieve.
  * @param string $orderId Unique identifier of the order.
  * @return string Resource Url
  */
 public static function deleteOrderNoteUrl($noteId, $orderId)
 {
     $url = "/api/commerce/orders/{orderId}/notes/{noteId}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("noteId", $noteId);
     $url = $mozuUrl->formatUrl("orderId", $orderId);
     return $mozuUrl;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:14,代码来源:OrderNoteUrl.php

示例8: deletePublishSetUrl

 /**
  * Get Resource Url for DeletePublishSet
  * @param bool $discardDrafts 
  * @param string $publishSetCode 
  * @return string Resource Url
  */
 public static function deletePublishSetUrl($discardDrafts, $publishSetCode)
 {
     $url = "/api/commerce/catalog/admin/publishing/publishsets/{publishSetCode}?discardDrafts={discardDrafts}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("discardDrafts", $discardDrafts);
     $url = $mozuUrl->formatUrl("publishSetCode", $publishSetCode);
     return $mozuUrl;
 }
开发者ID:echidna-mozu,项目名称:mozu-php-sdk,代码行数:14,代码来源:PublishingScopeUrl.php

示例9: addValidationResultUrl

 /**
  * Get Resource Url for AddValidationResult
  * @param string $orderId Unique identifier of the order.
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @return string Resource Url
  */
 public static function addValidationResultUrl($orderId, $responseFields)
 {
     $url = "/api/commerce/orders/{orderId}/validationresults?responseFields={responseFields}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "PUT", false);
     $url = $mozuUrl->formatUrl("orderId", $orderId);
     $url = $mozuUrl->formatUrl("responseFields", $responseFields);
     return $mozuUrl;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:14,代码来源:OrderValidationResultUrl.php

示例10: updateVisitUrl

 /**
  * Get Resource Url for UpdateVisit
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @param string $visitId Unique identifier of the customer visit to update.
  * @return string Resource Url
  */
 public static function updateVisitUrl($responseFields, $visitId)
 {
     $url = "/api/commerce/customer/visits/{visitId}?responseFields={responseFields}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "PUT", false);
     $url = $mozuUrl->formatUrl("responseFields", $responseFields);
     $url = $mozuUrl->formatUrl("visitId", $visitId);
     return $mozuUrl;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:14,代码来源:VisitUrl.php

示例11: getFacetsUrl

 /**
  * Get Resource Url for GetFacets
  * @param string $documentListName Name of content documentListName to delete
  * @param string $propertyName The property name associated with the facets to retrieve.
  * @return string Resource Url
  */
 public static function getFacetsUrl($documentListName, $propertyName)
 {
     $url = "/api/content/documentlists/{documentListName}/facets/{propertyName}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "GET", false);
     $url = $mozuUrl->formatUrl("documentListName", $documentListName);
     $url = $mozuUrl->formatUrl("propertyName", $propertyName);
     return $mozuUrl;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:14,代码来源:FacetUrl.php

示例12: unAssignDiscountUrl

 /**
  * Get Resource Url for UnAssignDiscount
  * @param string $couponSetCode 
  * @param int $discountId 
  * @return string Resource Url
  */
 public static function unAssignDiscountUrl($couponSetCode, $discountId)
 {
     $url = "/api/commerce/catalog/admin/couponsets/{couponSetCode}/assigneddiscounts/{discountId}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "DELETE", false);
     $url = $mozuUrl->formatUrl("couponSetCode", $couponSetCode);
     $url = $mozuUrl->formatUrl("discountId", $discountId);
     return $mozuUrl;
 }
开发者ID:echidna-mozu,项目名称:mozu-php-sdk,代码行数:14,代码来源:AssignedDiscountUrl.php

示例13: resendRefundEmailUrl

 /**
  * Get Resource Url for ResendRefundEmail
  * @param string $orderId Unique identifier of the order.
  * @param string $refundId Unique ID of the refund.
  * @return string Resource Url
  */
 public static function resendRefundEmailUrl($orderId, $refundId)
 {
     $url = "/api/commerce/orders/{orderId}/refunds/{refundId}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "PUT", false);
     $url = $mozuUrl->formatUrl("orderId", $orderId);
     $url = $mozuUrl->formatUrl("refundId", $refundId);
     return $mozuUrl;
 }
开发者ID:echidna-mozu,项目名称:mozu-php-sdk,代码行数:14,代码来源:RefundUrl.php

示例14: updateOrderAttributesUrl

 /**
  * Get Resource Url for UpdateOrderAttributes
  * @param string $orderId Unique identifier of the order.
  * @param bool $removeMissing If true, the operation removes missing properties so that the updated order attributes will not show properties with a null value.
  * @return string Resource Url
  */
 public static function updateOrderAttributesUrl($orderId, $removeMissing)
 {
     $url = "/api/commerce/orders/{orderId}/attributes?removeMissing={removeMissing}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "PUT", false);
     $url = $mozuUrl->formatUrl("orderId", $orderId);
     $url = $mozuUrl->formatUrl("removeMissing", $removeMissing);
     return $mozuUrl;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:14,代码来源:OrderAttributeUrl.php

示例15: updateMasterCatalogUrl

 /**
  * Get Resource Url for UpdateMasterCatalog
  * @param int $masterCatalogId 
  * @param string $responseFields Use this field to include those fields which are not included by default.
  * @return string Resource Url
  */
 public static function updateMasterCatalogUrl($masterCatalogId, $responseFields)
 {
     $url = "/api/commerce/catalog/admin/mastercatalogs/{masterCatalogId}?responseFields={responseFields}";
     $mozuUrl = new MozuUrl($url, UrlLocation::TENANT_POD, "PUT", false);
     $url = $mozuUrl->formatUrl("masterCatalogId", $masterCatalogId);
     $url = $mozuUrl->formatUrl("responseFields", $responseFields);
     return $mozuUrl;
 }
开发者ID:sgorman,项目名称:mozu-php-sdk,代码行数:14,代码来源:MasterCatalogUrl.php


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