Spree generic implementation for api token
问题 I an deleting items from spree cart using the following spree api url /api/orders/#{current_order.number}/line_items/#{line_iem.id}?line_item[variant_id]=#{line_item.variant.id}&line_item[quantity]=0&token=MyToken the token used here is of a single user. I want to implement this in generic way so that it can be used for both guest and registered user.. is it possible? any help would be highly appreciated Regards 回答1: Whenever you create an order using the Spree API, you get an order_token in