shippo-php-client | Shipping API PHP library | REST library

 by   goshippo PHP Version: v2.0.0 License: MIT

kandi X-RAY | shippo-php-client Summary

kandi X-RAY | shippo-php-client Summary

shippo-php-client is a PHP library typically used in Web Services, REST applications. shippo-php-client has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Shippo is a shipping API that connects you with multiple shipping carriers (such as USPS, UPS, DHL, Canada Post, Australia Post, UberRUSH and many others) through one interface. Print a shipping label in 10 mins using our default USPS and DHL Express accounts. No need to register for a carrier account to get started.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              shippo-php-client has a low active ecosystem.
              It has 148 star(s) with 82 fork(s). There are 34 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 19 open issues and 17 have been closed. On average issues are closed in 227 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of shippo-php-client is v2.0.0

            kandi-Quality Quality

              shippo-php-client has 0 bugs and 0 code smells.

            kandi-Security Security

              shippo-php-client has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              shippo-php-client code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              shippo-php-client is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              shippo-php-client releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed shippo-php-client and discovered the below as its top functions. This is intended to give you an instant insight into shippo-php-client implemented functionality, and help decide if they suit your requirements.
            • Refresh the attributes from the given array .
            • Handle API errors
            • Encodes an array into a string
            • Convert response to Shippo object
            • Convert a class name to a short name .
            • Replace values with the given properties .
            • Retrieves a singleton instance of a singleton class
            • Get the status of a subscription
            • Get shipping rates
            • Create a batch of objects
            Get all kandi verified functions for this library.

            shippo-php-client Key Features

            No Key Features are available at this moment for shippo-php-client.

            shippo-php-client Examples and Code Snippets

            No Code Snippets are available at this moment for shippo-php-client.

            Community Discussions

            QUESTION

            I am trying to create a test label from Shippo, however I get a rate error
            Asked 2017-May-30 at 17:14

            However I get this error, that I don't know what it means:

            Fatal error: Uncaught Shippo_InvalidRequestError: {"rate": ["This field is required."]} in /home/****/shippo/lib/Shippo/ApiRequestor.php:100 Stack trace: #0 /home/****/shippo/lib/Shippo/ApiRequestor.php(154): Shippo_ApiRequestor->handleApiError('{"rate": ["This...', 400, Array) #1 /home/****/shippo/lib/Shippo/ApiRequestor.php(59): Shippo_ApiRequestor->_interpretResponse('{"rate": ["This...', 400) #2 /home/****/shippo/lib/Shippo/ApiResource.php(107): Shippo_ApiRequestor->request('post', '/v1/transaction...', Array) #3 /home/****/shippo/lib/Shippo/Transaction.php(14): Shippo_ApiResource::_scopedCreate('Shippo_Transact...', Array, NULL) #4 /home/****/public_html/.ship/print/done/index.php(65): Shippo_Transaction::create(Array) #5 {main} thrown in /home/****/shippo/lib/Shippo/ApiRequestor.php on line 100

            I had gotten a similar message about the parcel field too, so I changed in the PHP script parcels to parcel. This is the example code from https://github.com/goshippo/shippo-php-client/blob/master/examples/basic-shipment.php

            My Code:

            ...

            ANSWER

            Answered 2017-May-30 at 17:14

            Although I am not 100% certain here, you are likely using the latest version of the PHP wrapper but do not have the latest version of the Shippo API.

            I would recommend going to the Shippo changelog and review the changes there and decide whether you would like to upgrade or not.

            The likely reason that your code is failing there, is that there (if you're on an older version of the API) you are trying to retrieve a value from a field that does not exist. You should be looking for $rate = $shipment['rates_list'][0].

            You'll see that this field was changed in the most recent version of the API.

            Source https://stackoverflow.com/questions/44250991

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install shippo-php-client

            Simple usage looks like:.
            Basic domestic shipment
            International shipment - Custom forms, interntational destinations
            Price estimation matrix
            Retrieve rates, filter by delivery time and purchase cheapest label
            Retrieve rates, purchase label for fastest delivery option
            Retrieve rates so customer can pick preferred shipping method, purchase label

            Support

            Please see https://goshippo.com/docs for up-to-date documentation.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/goshippo/shippo-php-client.git

          • CLI

            gh repo clone goshippo/shippo-php-client

          • sshUrl

            git@github.com:goshippo/shippo-php-client.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link