Skip to main content

REST client for seyfert wth python

Project description

Seyfert

파이썬을 이용한 seyfert api 연동 모듈입니다.

Install

pip install seyfert-api-python

Usage

발급받은 guid로 seyfert 준비

from seyfert-api import SeyfertAPI
from seyfert-api.client import TEST_SEYFERT_URL

seyfert = SeyfertAPI('your-guid')
# 테스트 url을 사용할 경우에는 명시적으로 추가해준다.
# seyfert = SeyfertAPI('your-guid', seyfert_url=TEST_SEYFERT_URL)

api list

# Members
seyfert.member_create(payload)
seyfert.member_create_with_email(payload)
seyfert.member_profile_with_guid(guid)
seyfert.member_update(guid, params)
seyfert.member_update_fullname(guid, name)
seyfert.member_update_phone(guid, phone)
seyfert.get_members_accounts(guid)

# Accounts
seyfert.banks_list()
seyfert.register_account(guid, accont_number, bank_code)
seyfert.check_account_exists(guid)
seyfert.verify_account_name(guid)
seyfert.verify_account_ownership(guid)
seyfert.is_account_exist_and_verify_name(guid)
seyfert.is_account_ownership_verified(guid)

TODO

  • transaction api 추가
  • test 추가
  • refactoring (member / account / transaction 분리)

상세 기능 설명

Member 기능

member 생성

# 멤버 만들기
# 필요한 정보 준비
valid_payload = {
    'emailTp': 'PERSONAL',
    'nmLangCd': 'ko',
    'phoneCntryCd': 'KOR',
    'phoneTp': 'MOBILE',
    'emailAddrss': 'test@test.com',
    'fullname': 'test name',
    'phoneNo': '01011111111',
}

# 일반 멤버 생성 (email, 번호가 달라야함. 하나라도 같을경우 기존멤버 반환)
response = seyfert.member_create(payload=valid_payload)

# email로 멤버 생성
response = seyfert.member_create_with_email(payload=valid_payload)

member 조회

특정 member의 guid로 프로필 정보 조회 가능

# 모든 정보 조회
guid = 'test_guid'
response = seyfert.member_profile_with_guid(guid)

# 해당 멤버의 계좌정보 조회
resopnse = seyfert.get_members_accounts(guid)

member 업데이트

특정 member의 guid로 프로필 정보 업데이트 가능

resopnse = seyfert

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seyfert-rest-client-0.1.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

seyfert_rest_client-0.1.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file seyfert-rest-client-0.1.2.tar.gz.

File metadata

  • Download URL: seyfert-rest-client-0.1.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.0

File hashes

Hashes for seyfert-rest-client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a5f2539d07dfa7f50139aa5d098a6cdc3c49ff92e558d8de132f4c66db6f2a62
MD5 5a5fbfd65bfa7fefb4df1cb6682c08d7
BLAKE2b-256 afb4093cccef6e8517e8b187d4fb24ab4cf1b57f8f68a0f3ddf16b3190aac32a

See more details on using hashes here.

File details

Details for the file seyfert_rest_client-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: seyfert_rest_client-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.0

File hashes

Hashes for seyfert_rest_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 76dfcd3f6b4ad43930df140190ad73c24029ab859e62fb492dda4683e837267f
MD5 1b441283748228b553fde37b2c73d765
BLAKE2b-256 c95c5ae72b27873f22d07b02970f8115fabb5093f5311901c4cddee6c10285ec

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page