This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |