def insert!(mirror=@client)
      timeline_item = self
      result = []
      if file_upload?
        for file in file_to_upload
          media = Google::APIClient::UploadIO.new(file.contentUrl, file.content_type)
          result << client.execute!(
              :api_method => mirror.timeline.insert,
              :body_object => timeline_item,
              :media => media,
              :parameters => {
                  :uploadType => 'multipart',
                  :alt => 'json'})
        end
      else
        result << client.execute(
            :api_method => mirror.timeline.insert,
            :body_object => timeline_item)
      end
      return result.data
    end
def insert!(mirror=@client)
      timeline_item = self
      result = []
      if file_upload?
        for file in file_to_upload
          media = Google::APIClient::UploadIO.new(file.contentUrl, file.content_type)
          result << client.execute!(
              :api_method => mirror.timeline.insert,
              :body_object => timeline_item,
              :media => media,
              :parameters => {
                  :uploadType => 'multipart',
                  :alt => 'json'})
        end
      else
        result << client.execute(
            :api_method => mirror.timeline.insert,
            :body_object => timeline_item)
      end
      return result.data
    end
Insert a new Timeline Item in the user's glass.

 @param [Google::APIClient::API] client
   Authorized client instance.
 @return Array[Google::APIClient::Schema::Mirror::V1::TimelineItem]
   Timeline item instance if successful, nil otherwise.