Giter Club home page Giter Club logo

go_postkr's Introduction

About postkr

인터넷 우체국 오픈API를 위한 Go언어 패키지 입니다.

현재, 우편번호, 종추적조회, EMS 중 우편번호 기능 만 구현되어 있습니다.

Documentation

Prerequisites

Install Go

Installation

$ go get github.com/suapapa/go_postkr

General Documentation

godoc.org 링크에서 온라인 문서를 보거나, 다음 명령으로 로컬에서 문서를 볼 수 있습니다.

go doc github.com/suapapa/go_postkr

Example

postkr을 사용하려면, 인터넷 우체국의 오픈API사용신청을 통해 키를 발급 받아야 합니다. 발급받은 키를 아래 코드의 yourKey 변수에 할당하세요.

package main

import (
        "fmt"
        "github.com/suapapa/go_postkr"
)

func main() {
        // 발급받은 오픈API 키로 바꾸세요
        yourKey := "abcedfghijklmnopqrstuvwxyz1234"

        s := postkr.NewService(yourKey)
        l, err := s.SerchZipCode("내곡동")
        if err != nil {
                fmt.Println(err)
                return
        }

        for _, p := range l {
                fmt.Printf("(%s) %s\n", p.Code, p.Address)
        }
}

실행 결과

$ go run postkr.go
(137180) 서울 서초구 내곡동
(412260) 경기 고양시 덕양구 내곡동
(210160) 강원 강릉시 내곡동
(210701) 강원 강릉시 내곡동 관동대
...

Author

Homin Lee <[email protected]>

Copyright & License

Copyright (c) 2012, Homin Lee. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

go_postkr's People

Contributors

suapapa avatar jaehoonkim avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

x-things

go_postkr's Issues

API source?

Not an issue but a question. I'm looking for Korea Post API for getting parcel price for a shipping. Does anything like that exist?

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.