Coder Social home page Coder Social logo

rajaongkir's People

Contributors

ncaneldiee avatar totoprayogo1916 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rajaongkir's Issues

courier in pro account

Hi,

How can I get all couriers in pro account?

this is my function now but only able to get one courier at the moment:

public function indexajax(Request $request, $cityID) {
      $rajaongkir = new Rajaongkir\Domestic('xxxxxxxxx');
      $province = $rajaongkir->province();

      $origin = 152; //Jakarta
      $destination = $request->cityID;
      $weight = 1;
      $courier = 'jne'; // jne, tiki, pos
      $cost = $rajaongkir->cost($origin, $destination, $weight, $courier);
      return response()->json($cost);
    }

PS:

please help me to get account type in my code

$rajaongkir = new Rajaongkir\Domestic('xxxxxxxxx');

for this i had to change Domestic.php file. couldn't add my type base on documents of this package

Thanks.

New couriers

Please add new couriers to Domestic.php

'expedito' => 'Expedito* (EXPEDITO)',
'lion' => 'Lion Parcel (LION)',
'ninja' => 'Ninja Xpress (NINJA)',
'idl' => 'IDL Cargo (IDL)',

Full list

protected $courier = [
        'basic' => [
            'esl' => 'Eka Sari Lorena (ESL)',
            'pcp' => 'Priority Cargo and Package (PCP)',
            'rpx' => 'RPX Holding (RPX)',
        ],
        'pro' => [
            'cahaya' => 'Cahaya Ekspress Logistik (CAHAYA)',
            'dse' => '21 Express (DSE)',
            'first' => 'First Logistics (FIRST)',
            'indah' => 'Indah Logistic (INDAH)',
            'jet' => 'JET Express (JET)',
            'jnt' => 'J&T Express (J&T)',
            'ncs' => 'Nusantara Card Semesta (NCS)',
            'pahala' => 'Pahala Kencana Express (PAHALA)',
            'pandu' => 'Pandu Logistics (PANDU)',
            'sap' => 'SAP Express (SAP)',
            'sicepat' => 'Sicepat Ekspres (SICEPAT)',
            'slis' => 'Solusi Ekspres (SLIS)',
            'star' => 'Star Cargo (STAR)',
            'wahana' => 'Wahana Prestasi Logistik (WAHANA)',
            'expedito' => 'Expedito* (EXPEDITO)',
            'lion' => 'Lion Parcel (LION)',
            'ninja' => 'Ninja Xpress (NINJA)',
            'idl' => 'IDL Cargo (IDL)',
        ],
        'starter' => [
            'jne' => 'Jalur Nugraha Ekakurir (JNE)',
            'pos' => 'POS Indonesia (POS)',
            'tiki' => 'Citra Van Titipan Kilat (TIKI)',
        ],
    ];

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.