联邦快递位置搜索联邦快递运输中心(FSC)

要求 需要使用联邦快递位置服务api FedEx Ship Center(FSC)

到目前为止,我已经尝试了不同的参数,但是API结果始终与Image.scaleToFit()不同。我已经对API文档进行了深入研究,但是无法在任何地方使用 FSC 。我相信它可用,但到目前为止我还没有得到。我跟随Live Search FedEx

我已经使用API Guide联邦快递API封装程序和约束来优化搜索JeremyDunn

   $searchLocationsRequest = new ComplexType\SearchLocationsRequest();
    // Authentication & client details.
    $searchLocationsRequest->WebAuthenticationDetail->UserCredential->Key = FEDEX_KEY;
    $searchLocationsRequest->WebAuthenticationDetail->UserCredential->Password = FEDEX_PASSWORD;
    $searchLocationsRequest->ClientDetail->accountNumber = FEDEX_accOUNT_NUMber;
    $searchLocationsRequest->ClientDetail->MeterNumber = FEDEX_METER_NUMber;
    $searchLocationsRequest->TransactionDetail->CustomerTransactionId = 'test locations service request';

    // Version.
    $searchLocationsRequest->Version->ServiceId = 'locs';
    $searchLocationsRequest->Version->Major = 9;
    $searchLocationsRequest->Version->Intermediate = 0;
    $searchLocationsRequest->Version->Minor = 0;

    // Locations search criterion.
    $searchLocationsRequest->LocationsSearchCriterion = simpletype\LocationsSearchCriteriaType::_ADDRESS;
    $searchLocationsRequest->Constraints->LocationTypesToInclude = ['FEDEX_SHIPSITE']; // Gives 13 Results

    // Address
    $searchLocationsRequest->Address->City = 'Washington';
    $searchLocationsRequest->Address->StateOrProvinceCode = 'DC';
    $searchLocationsRequest->Address->CountryCode = 'US';

   // Multiple matches action.
    $searchLocationsRequest->MultipleMatchesaction = simpletype\MultipleMatchesactionType::_RETURN_ALL;

    // Get Search Locations reply.
    $locationServiceRequest = new Request();
    $locationServiceRequest->getsoapClient()->__setLocation(Request::PRODUCTION_URL);
    $searchLocationsReply = $locationServiceRequest->getSearchLocationsReply($searchLocationsRequest);
patrxx 回答:联邦快递位置搜索联邦快递运输中心(FSC)

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3118949.html

大家都在问