You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()`
The text was updated successfully, but these errors were encountered:
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")
}
}
The text was updated successfully, but these errors were encountered: