Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Using on channel without a custom url #3

Open
cheeth opened this issue Mar 15, 2015 · 1 comment
Open

Using on channel without a custom url #3

cheeth opened this issue Mar 15, 2015 · 1 comment

Comments

@cheeth
Copy link

cheeth commented Mar 15, 2015

Hello,

It appears the channel needs to have custom url in order to get API access,

Can you confirm this?

Best wishes,
Paul

@uttara-cmu
Copy link

I have a mixture of custom urls and channel ids. I tweaked the code a little bit to deal with this.
In getChannelId function, I set retVal = channelName(which is the channel id in my case), in the else part of if-else if the search for channel name doesn't return anything. Chanelnames that are not custom (for eg: UCxSz6JVYmzVhtkraHWZC7HQ) will not return anything in the search, but since we are passing the channel id which is what this function is supposed to return, we can directly use this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants