           city: "venue_city",
           state: "venue_state"
         }
-      }
+      },
+      tags: tags,
+      calendar_id: 10
     }
 
-    IO.puts "Inspecting event"
-    IO.inspect event
+    {:ok, post_body_string} = Poison.encode(%{"event" => event})
+    %{body: {:ok, %{"event" => %{"id" => id}}}} = NB.post("events", [body: post_body_string])
 
     json conn, %{"ok" => "There you go!"}
   end

  end

  defp output_time([hours, minutes], "AM"), do: "#{hours}:#{minutes}"
  defp output_time([hours, minutes], "PM"), do: "#{Integer.parse(hours) + 12}:#{minutes}"
end

      last_name: last_name
    }

    {:ok, post_body_string} = Poison.encode(%{"person" => person})
    %{body: {:ok, %{"person" => %{"id" => id}}}} = NB.post("people", [body: post_body_string])

    tags = case together["sharing_permission"] do
      true -> []
      false -> ["Event: Hide Address"]
    end

    event = %{
      name: together["event_name"],
      status: "unlisted",
      author_id: id,
      intro: together["event_intro"],
      start_time: together["event_date"] <> "T" <> process_time(together["start_time"]),
      end_time: together["event_date"] <> "T" <> process_time(together["end_time"]),
