我正试图通过邮递员创建一个客户,以这种方式通过邮寄方法检查Prestashop Web服务,
**http://mysiteurl.com/api/customers?schema=blank&output_format=JSON&ws_key=my_site_ws_key**
{ "passwd" : "vivek@lmx",
"lastname" : "S",
"firstname" : "Vivek",
"email" : "vivek@logimaxindia.com"
}
但响应为
{
"errors": [
{
"code": 27,
"message": "Resource of type \"customers\ufeff\" does not exists. Did you mean: \"customers\"? The full list is: \"addresses\", \"carriers\", \"cart_rules\", \"carts\", \"categories\", \"combinations\", \"configurations\", \"contacts\", \"content_management_system\", \"countries\", \"currencies\", \"customer_messages\", \"customer_threads\", \"customers\", \"customizations\", \"deliveries\", \"employees\", \"groups\", \"guests\", \"image_types\", \"images\", \"languages\", \"manufacturers\", \"messages\", \"order_carriers\", \"order_details\", \"order_histories\", \"order_invoices\", \"order_payments\", \"order_slip\", \"order_states\", \"orders\", \"price_ranges\", \"product_customization_fields\", \"product_feature_values\", \"product_features\", \"product_option_values\", \"product_options\", \"product_suppliers\", \"products\", \"search\", \"shop_groups\", \"shop_urls\", \"shops\", \"specific_price_rules\", \"specific_prices\", \"states\", \"stock_availables\", \"stock_movement_reasons\", \"stock_movements\", \"stocks\", \"stores\", \"suppliers\", \"supply_order_details\", \"supply_order_histories\", \"supply_order_receipt_histories\", \"supply_order_states\", \"supply_orders\", \"tags\", \"tax_rule_groups\", \"tax_rules\", \"taxes\", \"translated_configurations\", \"warehouse_product_locations\", \"warehouses\", \"weight_ranges\", \"zones\""
}
]
}
但是当我检查https://mysiteurl.com/api时,它显示了上述结果并具有所有许可和权利,
<customers xlink:href="https://bhimajewellery.com/new/api/customers" get="true" put="true" post="true" delete="true" head="true">
<description xlink:href="https://bhimajewellery.com/new/api/customers" get="true" put="true" post="true" delete="true" head="true"> The e-shop's customers</description>
<schema xlink:href="https://bhimajewellery.com/new/api/customers?schema=blank" type="blank"/>
<schema xlink:href="https://bhimajewellery.com/new/api/customers?schema=synopsis" type="synopsis"/>
</customers>
我不知道如何通过访问prestashop Web服务从邮递员创建客户。如果我知道这一点,那么只有我可以将值从ionic 3应用程序传递到Web服务,并为我的Android应用程序创建客户。请帮助任何人。