0.0.7 • Published 4 years ago

jp-post v0.0.7

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

JpPost

This library was generated with Angular CLI version 9.1.9.

demo

install

npm i jp-post

example

example.component.ts

    this.jpPostService.get(postalCode)
      .then(response => {
        if (response.code === 200) {
        } else {
        }
      })
      .catch(err => {
        this.err = err;
        console.log(err);
      });

reference

inputs

  • postalCode: Japan zip code.

output

  • response: ZipSearch model.
export interface ZipSearch {
  code: number;
  data: {
    pref: string,
    address: string,
    city: string,
    town: string,
    fullAddress: string,
  };
  message?: string;
}

If success then return code is 200 and set value data, else error return code other 200 and set value message.

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago