Coder Social home page Coder Social logo

seshac / laravel-shiprocket-api Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 10.0 85 KB

Laravel PHP - Shiprocket SDK. Integration of Shiprocket API in your laravel application is easy, This package enables you to utilize most of your Shiprocket functions.

PHP 100.00%
laravel php shiprocket-api shiprocket-sdk

laravel-shiprocket-api's Introduction

Hi there ๐Ÿ‘‹

I'm Sesha, Full-Stack web developer, Programmer, Laravel & Symfony Artisan, and Typescript & Vuejs Enthusiast.

  • ๐Ÿ“ซ How to reach me: ... Ping me on twitter: @seshaCS

laravel-shiprocket-api's People

Contributors

jithintom08 avatar sesha008 avatar seshac avatar vivekaris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-shiprocket-api's Issues

Getting 500 in Create Order

I'm getting following response for create order if i call from postman everything working fine

Illuminate\Support\Collection Object
(
[items:protected] => Array
(
[message] => Error: Undefined property: stdClass::$selling_price
[status_code] => 500
)

)

Call to undefined method Seshac\Shiprocket\ShiprocketApi::token()

Screenshot from 2021-02-12 17-08-14

I am using Ubuntu 20.10 OS.
PHP Version: 7.2

I published the vendor file using following command:

php artisan vendor:publish --provider="Seshac\Shiprocket\ShiprocketServiceProvider" --tag="config"

Suggestion

Please add this method after the constructor in ShiprocketApi class:

    /**
     * Get the login details including token (valid for 24 hours)
     *
     * @return mixed
     */

    public function token()
    {
        return $this->login([
            'email' => config('shiprocket.credentials.email'),
            'password' => config('shiprocket.credentials.password')
        ]);
    }

the Return Order

Hi,
Is there a call to order a return I don't get a return call to the API?

If have please provide the details.

Thanks.

InvalidArgumentException

[InvalidArgumentException] when i run following command composer require seshac/laravel-shiprocket-api

Package seshac/laravel-shiprocket-api at version has a PHP requirement incompatible with your PHP version (7.2.31)

Will this work on core php ?

it says Laravel Shiprocket but i wonder if it will work with core php ?, or does it have any kind of required module/class used internally which is only avaiable on Laravel only ?

Class 'Seshac\Shiprocket\Shiprocket' not found

use Seshac\Shiprocket\Shiprocket;

public function update(Request $request, $id){
$orderDetails = [
// refer above url for required parameters
];
$token = Shiprocket::getToken();
$response = Shiprocket::order($token)->create($orderDetails);
}

Class 'Seshac\Shiprocket\Shiprocket' not found

Return Order

Hi sesha,

is their any call for order return, i couldn't found the return call in API
If have please provide the details.

Thanks in advance.

While installing i got the below error

[RuntimeException]
Failed to execute git show-ref --head -d

'git' is not recognized as an internal or external command,
operable program or batch file.

Please Help me to Install

image

Call to undefined method Seshac\Shiprocket\Resources\OrderResource::find()

Getting Error when calling Specific Order by ORDER ID
Call to undefined method Seshac\Shiprocket\Resources\OrderResource::find()

namespace used
use Seshac\Shiprocket\Shiprocket;

$token = Shiprocket::getToken(); // Getting token correctly and also Shiprocket::order($token)->create($orderDetails) is working perfect
$orderId = xxxxxxx;
$order = Shiprocket::order($token)->find($orderId);

Workflows are referencing vulnerable actions

Hello, there!

As part of the university research we are currently doing regarding the security of Github Actions, we noticed that one or many of the workflows that are part of this repository are referencing vulnerable versions of the third-party actions. As part of a disclosure process, we decided to open issues to notify GitHub Community.

Please note that there are could be some false positives in our methodology, thus not all of the open issues could be valid. If that is the case, please let us know, so that we can improve on our approach. You can contact me directly using an email: ikoishy [at] ncsu.edu

Thanks in advance

  1. The workflow run-unit-tests.yml is referencing action shivammathur/setup-php using references v1. However this reference is missing the commit 7163319 which may contain fix to the vulnerability.

The vulnerability fix that is missing by actions' versions could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider updating the reference to the action.

If you end up updating the reference, please let us know. We need the stats for the paper :-)

Not getting the token, Please help me

When I am going to return token like- return $token = Shiprocket::token();
Getting the below error message-
Class 'App\Http\Controllers\Shiprocket' not found

should i create a controller for Shiprocket? Please help me.
I have set the default shiprocket credentilas and it is return token in postman. Please solve the issue
issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.