Issues with creating a post and locking the topic via the API

I just tested your code locally and it is working fine for me. What isn’t working? I’m assuming the post is being created, but the topic just isn’t being closed? If so could you use puts and output the result of @client.change_topic_status(slug, topic_id, params)?

As a side note looking at the code in the api gem we aren’t using the slug variable at all, so I’ll make an update to remove it.