title: iOS Swift: How can we create pin in Pinterest?
body: <p>I have all the boards of logged in user and using Pinterest api I am able to fetch the pins from given board but Create pins is not working.</p>
  
  <p>I have create Application on Pinterest Developer <a href="https://developers.pinterest.com/" rel="nofollow noreferrer">https://developers.pinterest.com/</a></p>
  
  <p>As per document , I have added collaborator for authenticated users. Send perfect parameters for create pins after permission api.</p>
  
  <p>I got perfect response in permission api and in boards but getting error in create pin from my application.</p>
  
  <p>Please look below my code:</p>
  
  <pre><code>PDKClient.sharedInstance().createPin(withImageURL: URL.init(string: aImageUrl), link: URL.init(string: "https://www.pinterest.com"), onBoard: myBoardID, description: "Hello All", withSuccess: { (response) in
        //print(response)
          print("Pinterest sucess")
      }, andFailure: { (error) in
         print(error as Any)
           print("Pinterest Fail")
       })
  </code></pre>
  
  <p>For this api <strong>I am always getting 404 or 400 error.</strong></p>
  
  <p>Please help me for that.</p>
  
  <p>Thanks in advance.</p>