Open
Description
Hello,
I want to share Text, image and video on tumblr using my application. i used following code but it not upload it give success but post not display on my dashboard post. My code is in swift and using bridging for this.
` let request : TMRequestFactory = TMRequestFactory(baseURLDeterminer: TMBasicBaseURLDeterminer.init())
let client : TMAPIClient = TMAPIClient(session: self.session!, requestFactory: request)
let task : URLSessionTask = client.postDataTask(withBlogName: "sampleText", type: "text", parameters: ["body" : "this is my sample post please check it is post or not"]) { (data, response, error) in
if (error != nil)
{
print(error!)
}
else
{
print(String(data: data!, encoding: String.Encoding.utf8) ?? "Error")
}
}
task.resume()`
Metadata
Metadata
Assignees
Labels
No labels