Giter VIP home page Giter VIP logo

woosignal / flutter-woocommerce-api Goto Github PK

View Code? Open in Web Editor NEW
57.0 57.0 18.0 1.85 MB

WooCommerce API for Flutter, connect and start developing with the available endpoints like get products, create orders and more.

Home Page: https://woosignal.com

License: Other

Dart 99.34% Kotlin 0.04% Swift 0.14% Objective-C 0.01% Ruby 0.46%
android api dart flutter flutter-plugin ios plugin woocommerce woocommerce-api

flutter-woocommerce-api's People

Contributors

agordn52 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flutter-woocommerce-api's Issues

Customer MetaData Error

API Response

 "meta_data": [
    {
      "id": 18,
      "key": "community-events-location",
      "value": {
        "ip": "173.245.211.0"
      }
    },
    {
      "id": 20,
      "key": "wc_last_active",
      "value": 1590796800
    }
  ],

Customer MetaData class

class MetaData {
  final int id;
  final String key;
  final String value;

  MetaData(this.id, this.key, this.value);

  MetaData.fromJson(Map<String, dynamic> json)
      : id = json['name'],
        key = json['email'],
        value = json['value'];

  Map<String, dynamic> toJson() => {'id': id, 'key': key, 'value': value};
}

Not compatiable when fromJson

Unsupported Platform (Web)

Hi, when trying to compile and run on the Web (mostly for debugging purposes), the WooSignal.init(...) throws an error message of type 'Unsupported Platform'. I think it might be related to the ApiProvider.setDeviceMeta() function that uses Platform.isAndroid, etc.

I've made a quick test and replaced the 'Platform' library with 'UniveralPlatform' and it looks like it's working (at least on the Web).

Any chance you could make it compatible with the Web? Or simply adjust the code as proposed? Thanks :)

import 'package:universal_platform/universal_platform.dart';
...

if (UniversalPlatform.isAndroid) {
...
} else if (UniversalPlatform.isIOS) { 
...
} else if (UniversalPlatform.isDesktopOrWeb) {
...
}

Products wont show

I linked my woocommerce store with woosignal and made sure that the app key is correct but the products wont show in the app and i have no idea what is the problem.

Using other domain

Hi, is this package only restricted on using WooSignal sites? Can I configure it to use my own hosted Woo Commerce store?

Getting JSON ERROR: "Syntax error" when calling getProducts API

Steps to reproduce

  1. Clone the repository.

  2. Rename woosignalWoocommerceExample to main. Without that change, the app won't run.

    CleanShot 2022-10-09 at 13 29 22@2x
  3. Set the API key.

  4. Set debug mode to see errors in the console:

    CleanShot 2022-10-09 at 13 31 01@2x

  5. Run the example app.

  6. Tap on the bulb button to get products from WooCommerce.

  7. Observe the errors in the "Debug console" tab.

    CleanShot 2022-10-09 at 13 32 29@2x

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.