Skip to content

Instantly share code, notes, and snippets.

@hok00age
hok00age / internationalCost-success.json
Last active August 29, 2015 14:17
Contoh response sukses API RajaOngkir untuk end point internationalCost
{
"rajaongkir":{
"query":{
"origin":"152",
"destination":"108",
"weight":1400,
"courier":"pos"
},
"status":{
"code":200,
@hok00age
hok00age / internationalDestination-error.json
Last active August 29, 2015 14:17
Contoh response error API RajaOngkir untuk end point internationalDestination
{
"rajaongkir":{
"status":{
"code":400,
"description":"Invalid key."
}
}
}
@hok00age
hok00age / internationalDestination-success.json
Last active August 29, 2015 14:17
Contoh response sukses API RajaOngkir untuk end point internationalDestination
{
"rajaongkir":{
"query":{
"id":"108"
},
"status":{
"code":200,
"description":"OK"
},
"results":{
@hok00age
hok00age / internationalOrigin-error.json
Last active August 29, 2015 14:17
Contoh response error API RajaOngkir untuk end point internationalOrigin
{
"rajaongkir":{
"status":{
"code":400,
"description":"Invalid key."
}
}
}
@hok00age
hok00age / internationalOrigin-success.json
Last active August 29, 2015 14:17
Contoh response sukses API RajaOngkir untuk end point internationalOrigin
{
"rajaongkir":{
"query":{
"id":"152",
"province":"6"
},
"status":{
"code":200,
"description":"OK"
},
@hok00age
hok00age / RajaOngkir Widget Code
Last active May 28, 2016 19:20
Code untuk menambahkan widget pengecekan ongkos kirim
<div data-theme="light" id="rajaongkir-widget"></div>
<script type="text/javascript" src="//rajaongkir.com/script/widget.js"></script>
@hok00age
hok00age / cost-error.json
Last active August 29, 2015 14:14
Contoh response error API RajaOngkir untuk end point cost
{
"rajaongkir": {
"status": {
"code": 400,
"description": "Invalid key."
}
}
}
@hok00age
hok00age / cost-success.json
Last active August 29, 2015 14:14
Contoh response sukses API RajaOngkir untuk end point cost
{
"rajaongkir":{
"query":{
"origin":"501",
"destination":"114",
"weight":1700,
"courier":"jne"
},
"status":{
"code":200,
@hok00age
hok00age / city-error.json
Last active August 29, 2015 14:14
Contoh response error API RajaOngkir untuk end point city
{
"rajaongkir": {
"status": {
"code": 400,
"description": "Invalid key."
}
}
}
@hok00age
hok00age / city-success.json
Last active August 29, 2015 14:14
Contoh response sukses API RajaOngkir untuk end point city
{
"rajaongkir": {
"query": {
"province": "5",
"id": "39"
},
"status": {
"code": 200,
"description": "OK"
},