패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.2.0+1

wordpress_api

WooCommerce 및 사용자 정의 네임스페이스를 지원하는 Dart용 워드프레스 REST API 클라이언트입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
90
좋아요
102
Pub 점수
145

패키지 설치

flutter pub add wordpress_api

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

WordPress REST API용 클라이언트를 제공하는 Dart 패키지로, WooCommerce 및 사용자 정의 네임스페이스를 지원합니다. 모바일과 웹을 포함한 다양한 플랫폼에서 WordPress 사이트와 원활하게 통합할 수 있습니다. 인증, 데이터 가져오기, 복잡한 API 응답 처리를 단순화하여 WordPress 기반 콘텐츠 또는 전자상거래 시스템과 상호작용하는 앱을 개발하는 개발자에게 이상적입니다. Android, iOS, Web, macOS, Windows, Linux에 공식적으로 지원되며, 크로스플랫폼 호환성을 보장합니다. 소스 코드는 투명성과 커뮤니티 기여를 위해 GitHub에서 공개되어 있습니다.

사용 사례

  • WordPress 블로그용 모바일 앱 만들기
  • Flutter 앱에 WooCommerce 스토어 통합
  • WordPress에서 사용자 정의 게시 유형 가져오기
  • 콘텐츠 기반 웹 애플리케이션 만들기
  • 사용자 정의 API 엔드포인트를 사용하여 WordPress에 연결

주요 기능

  • WooCommerce API 지원
  • 사용자 정의 네임스페이스 처리
  • 크로스 플랫폼 호환성
  • 인증 유틸리티
  • 강력한 오류 처리
  • 타입 안전한 응답 파싱

적합한 대상

  • WordPress와 함께 작업하는 Flutter 개발자
  • WooCommerce를 사용하는 전자상거래 앱 제작자
  • 콘텐츠 관리 시스템 통합업체
  • API 우선 애플리케이션 빌더
  • 다중 플랫폼 워드프레스 통합이 필요한 팀

고려 사항

  • WordPress REST API 구조에 익숙해야 합니다
  • 사용자 지정 엔드포인트를 위해 추가 설정이 필요할 수 있습니다
  • 외부 워드프레스 사이트 구성에 의존
  • 기본 예제를 넘어서는 문서가 제한적입니다
  • 직접적인 워드프레스 관리 작업에 적합하지 않습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

WordPress REST API client for Dart | Flutter

All Contributors

GitHub stars Pub Build Status Maintenance

Description

A WordPress REST API client for dart with support for WooCommerce and custom namespaces/endpoints.

Features

  • Retrieve data from standard WordPress endpoints.
  • Retrieve data from any custom namespace

Installation

In the dependencies: section of your pubspec.yaml, add the following line:

dependencies:
  wordpress_api: <latest_version>

Usage

  • Import the package
import 'package:wordpress_api/wordpress_api';
  • Initialize WPAPI
  WordPressAPI api = WordPressAPI('wp-site.com');
  • Retrieve posts from .posts getter

    • You can fetch a list of posts by simply calling .posts. More arguments can be passed to further filter the data returned
      void main() async {
        final api = WordPressAPI('wp-site.com');
        final WPResponse res = await api.posts.fetch();
        for (final post in res.data) {
          print(post.title);
        }
      }
    
    • As of v0.3.0, you can query a single post from the same endpoint by passing an id
      void main() async {
        final api = WordPressAPI('wp-site.com');
        final WPResponse res = await api.posts.fetch(id: 1);
        print(res.data.title);
      }
    
  • Retrieve data from a custom endpoint

  void main() async {
    final api = WordPressAPI('wp-site.com');
    final WPResponse res = await api.get(endpoint: 'your-custom-endpoint');
    print(res.data);
  }

ToDo

  • Authentication using Application Passwords. WordPress 5.6+ only
  • Fully integrated WooCommerce support.
  • Full CRUD operations.
  • Support for other popular WordPress Plugins.

Contributions are welcome, report any issues here

Special Thanks

Contributors ✨

Thanks goes to these wonderful people (emoji key):

anKii
anKii

💻
Kellvem Barbosa
Kellvem Barbosa

💻
NKlage
NKlage

💻 🐛
Elikem (Junior) Medehou
Elikem (Junior) Medehou

💻
Okan Demir
Okan Demir

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

카테고리

의존성

의존성 목록 4 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.