Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Updating Product Features Via Nsurl (Swift) Rate Topic   - - - - -

 
  • abinop
  • Member
  • Members
  • Join Date: 01-Apr 07
  • 57 posts

Posted 04 July 2019 - 12:58 PM #1

Hello,
 
I want to create a new product with features via the API. I have created the request on Postman and it works ok there as well as the cURL code that Postman produces.
 
However, when I try to run the equivalent code from a playground or project in Swift (iOS) everything is created except the product features. I am guessing that this is because it is a nested array.
 
Does anyone have any previous experience on that? 
 
This can be easily tested it if you create the call in Postman, then copy/paste the Swift(NSURL) snippet code and run it in XCode.
 


 
  • abinop
  • Member
  • Members
  • Join Date: 01-Apr 07
  • 57 posts

Posted 12 July 2019 - 05:09 PM #2

I just found out that if you don't set the language as the same language as you are viewing the product on the admin panel , the product options will not show... that was it...



 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4553 posts

Posted 12 July 2019 - 08:41 PM #3

thx for solution


Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2