Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share Post on tumblr #151

Open
hirenspaceo opened this issue Feb 3, 2018 · 0 comments
Open

Share Post on tumblr #151

hirenspaceo opened this issue Feb 3, 2018 · 0 comments

Comments

@hirenspaceo
Copy link

hirenspaceo commented Feb 3, 2018

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()`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant