   end
 
   def user_notifications(cookies, page \\ 1) do
-    cookies = cookies |> filter_cookies()
-
-    %Response{status_code: status_code, body: body, cookies: new_cookies} = get(
-      "https://www.stargatecommand.co/notifications?page=#{page}",
-      [
-        {"Accept", "application/json, text/javascript, */*; q=0.01"},
-        {"X-Requested-With", "XMLHttpRequest"}
-      ],
-      cookies
+    %Response{status_code: status_code, body: body, cookies: new_cookies} = simple_api_get(
+      "https://www.stargatecommand.co/notifications?page=#{page}", cookies
     )
 
     case status_code do

  end

  def mark_user_notification_as_read(cookies, id) do
    cookies = cookies |> filter_cookies()

    %Response{status_code: status_code, cookies: new_cookies} = get(
      "https://www.stargatecommand.co/notifications/mark_read?id=#{id}",
      [
        {"Accept", "application/json, text/javascript, */*; q=0.01"},
        {"X-Requested-With", "XMLHttpRequest"}
      ],
      cookies
    )

    case status_code do

      headers: headers,
      cookies: response_cookies
    }
  end

  def simple_api_get(url, cookies) do
    cookies = cookies |> filter_cookies()

    get(
      url,
      [
        {"Accept", "application/json, text/javascript, */*; q=0.01"},
        {"X-Requested-With", "XMLHttpRequest"}
      ],
      cookies
    )
  end

  def filter_cookies(cookies) do
