पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv1.2.0+1

wordpress_api

डार्ट के लिए वर्डप्रेस आरएसटी एपीआई क्लाइंट जिसमें वूकॉमर्स और कस्टम नेमस्पेस का समर्थन है।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
90
लाइक
102
Pub अंक
145

पैकेज इंस्टॉल करें

flutter pub add wordpress_api

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एक डार्ट पैकेज जो वर्डप्रेस आरईएस्ट एपीआई के लिए एक क्लाइंट प्रदान करता है, जिसमें वूकोमर्स और कस्टम नेमस्पेस का समर्थन होता है। यह मोबाइल और वेब सहित विभिन्न प्लेटफॉर्मों पर वर्डप्रेस साइट्स के साथ बेहतरीन एकीकरण सुनिश्चित करता है। इस पैकेज के माध्यम से प्रमाणीकरण, डेटा प्राप्त करना और जटिल एपीआई प्रतिक्रियाओं का निर्माण आसान हो जाता है, जिससे वर्डप्रेस-आधारित सामग्री या ई-कॉमर्स प्रणालियों के साथ बातचीत करने वाले ऐप बनाने वाले डेवलपर्स के लिए उपयुक्त होता है। एंड्रॉइड, आईओएस, वेब, मैकओएस, विंडोज और लिनक्स के लिए आधिकारिक समर्थन है, जिससे क्रॉस-प्लेटफॉर्म संगतता सुनिश्चित होती है। स्रोत कोड ट्रांसपेरेंसी और समुदाय योगदान के लिए गिटहब पर सार्वजनिक रूप से उपलब्ध है।

उपयोग

  • WordPress ब्लॉग्स के लिए मोबाइल ऐप्स बनाना
  • Flutter ऐप्स में WooCommerce स्टोर को एकीकृत करना
  • WordPress से कस्टम पोस्ट प्रकार डाउनलोड करें
  • सामग्री-आधारित वेब एप्लिकेशन बनाना
  • कस्टम API एंडपॉइंट्स के साथ WordPress से कनेक्ट करना

मुख्य विशेषताएँ

  • WooCommerce APIs का समर्थन
  • कस्टम नेमस्पेस हैंडलिंग
  • प्लेटफॉर्म के अनुकूलता
  • प्रमाणीकरण उपकरण
  • टिकाऊ त्रुटि संभाल
  • प्रकार सुरक्षित प्रतिक्रिया विश्लेषण

इनके लिए उपयुक्त

  • WordPress के साथ काम कर रहे Flutter विकासकर्ता
  • WooCommerce का उपयोग करने वाले ई-कॉमर्स ऐप निर्माता
  • सामग्री प्रबंधन प्रणाली एकीकरणकर्ता
  • API-प्रथम एप्लिकेशन बिल्डर्स
  • बहु-प्लेटफॉर्म वर्डप्रेस एकीकरण की आवश्यकता वाली टीमें

विचार योग्य बातें

  • WordPress REST API संरचना के प्रति परिचित होना आवश्यक है
  • कस्टम एंडपॉइंट्स के लिए अतिरिक्त सेटअप की आवश्यकता हो सकती है
  • बाहरी वर्डप्रेस साइट कॉन्फ़िगरेशन पर निर्भर
  • मूल उदाहरणों के अतिरिक्त सीमित दस्तावेज़न
  • सीधे WordPress प्रशासनिक संचालन के लिए उपयुक्त नहीं है

मूल 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 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।