Skip to content

Share Post on tumblr #151

Open
Open
@hirenspaceo

Description

@hirenspaceo

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions