Skip to content

Instantly share code, notes, and snippets.

View prateeksriv's full-sized avatar

Prateek Srivastava prateeksriv

View GitHub Profile
@prateeksriv
prateeksriv / gphoto_test.py
Created February 21, 2017 03:00
google photo upload
#!/usr/bin/python2.7
import gdata.photos.service
import gdata.media
import gdata.geo
import pprint
import os.path
import mimetypes
import httplib2
import atom
func mattermostPrintChannels(client *mattermost.Client) {
channelsResult, err := client.GetChannels("")
if err != nil {
fmt.Print("Couldn't get channels: ", err)
return
}
channelList := channelsResult.Data.(*mattermost.ChannelList)
fmt.Print("Channels:")
for _, channel := range channelList.Channels {
fmt.Printf("%s -> %s", channel.Id, channel.DisplayName)