Date   

Re: getting a Auth token

 

On Tue, Jul 3, 2018 at 8:18 AM, valcos <valcos@...> wrote:
I'm trying to get an auth token to fetch data from the API. I'm following the instructions here: https://groups.io/api#authentication-1 however when I execute the command:
$ curl "https://api.groups.io/v1/login" -u <my-username>: -d "email=<my-email>&password=<my-pwd>"
You need to specify an API token instead of <my-username> in your example. While the API is in alpha, you can use the token 123456.

Cheers,
Mark 


getting a Auth token

valcos
 

I'm trying to get an auth token to fetch data from the API. I'm following the instructions here: https://groups.io/api#authentication-1 however when I execute the command:
$ curl "https://api.groups.io/v1/login" -u <my-username>: -d "email=<my-email>&password=<my-pwd>"
I get:
{"object":"error","type":"unauthorized","extra":""}
What I'm doing wrong?

Cheers,
Valerio
 
 


Python API library

charlesreid1.dib@...
 

Hello, is there any active development on a Python library with API bindings for groups.io? Something pip-installable? Maybe a Github organization? I plan to write some API bindings in Python for a project we're doing, and it would be nice if there were a broader effort to link into. Otherwise, will post a link to this mailing list when the project is in a (semi?) polished state.


"Files" Object

Andreas Sedlmeier
 

Hi!

I am new here. I am planning to utilize this API for some "community stuff" around a group I am a member of.

First thing I saw: An API_KEY is required to access the groups.io API. Where can I get one ? 

Second: I was planning to start with something around the file section of the group I mentioned. There seems to be however no API which would allow to access that information (list of files available for download, ... ). Is that indeed the case or did I oversee something and if I didn't, is there any plans to expose that information via groups.io  API ?

Best regards,

Andreas


API key available?

moderator
 

GA - we'd like to start working on a couple of integration projects. The first will sync the groups.io member list with our database. Are API keys available for projects like this? Thanks, Bill


Re: Retrieving the number of members in a group?

Isaac Whitfield <iw@...>
 

HI Mark,

Looks perfect, thank you for adding this!
Isaac


Re: Retrieving the number of members in a group?

 

Hi Isaac,

The group object now returns various counts, including counts for subs, pending subs, pending messages, threads and messages.

Hope this helps.
Mark

On Tue, Jan 9, 2018 at 11:36 PM, Isaac Whitfield <iw@...> wrote:
Hi all,

Is there a way in the API to retrieve the number of members in a group? I know it's possible to iterate them all and count them, but perhaps a simple count could be added to the Group object? This makes it easier to render quickly when displaying this information.

Thanks!
Isaac



Retrieving the number of members in a group?

Isaac Whitfield <iw@...>
 

Hi all,

Is there a way in the API to retrieve the number of members in a group? I know it's possible to iterate them all and count them, but perhaps a simple count could be added to the Group object? This makes it easier to render quickly when displaying this information.

Thanks!
Isaac


Re: Permissions issues working with group create/delete

 

Hi Isaac,

On Tue, Nov 7, 2017 at 9:13 PM, Isaac Whitfield <iw@...> wrote:

Can confirm that for the group creation; setting to unlisted makes it work - however I still can't remove groups or update them. Potentially same root cause somehow?

My screw up. It should be fixed now. For real this time.

Thanks,
Mark 


Re: Permissions issues working with group create/delete

Isaac Whitfield <iw@...>
 

Hi Mark,

Can confirm that for the group creation; setting to unlisted makes it work - however I still can't remove groups or update them. Potentially same root cause somehow?

Thanks!
IW


Re: Permissions issues working with group create/delete

 

Hi Isaac,

I believe the problem is that, for groups that are listed in the directory, I must approve them before you are allowed to do many things, including create subgroups. This is an anti-spam measure (some people will create a group with an ad as the description, just to try to get their ad on our site). I try to approve quickly, but on weekends especially there can be a delay.

Thanks,
Mark

On Sun, Nov 5, 2017 at 9:14 AM, Isaac Whitfield <iw@...> wrote:
Hi all,

I'm having a couple of issues with creating subgroups and deleting groups, both of which are giving me "inadequate_permissions" as the reason but my Permissions object for the groups has "true" on every permission. I can confirm that I'm using POST for both /createsubgroup and /deletegroup, and strangely enough creating groups at the top level works.

Any ideas anyone?

Thanks!
IW



Re: New endpoint: /creategroup

Isaac Whitfield <iw@...>
 

Hi Mark,

I've created a separate thread over in https://beta.groups.io/g/api/topic/permissions_issues_working/6294330 to avoid bloating this one.

Thanks!
IW


Permissions issues working with group create/delete

Isaac Whitfield <iw@...>
 

Hi all,

I'm having a couple of issues with creating subgroups and deleting groups, both of which are giving me "inadequate_permissions" as the reason but my Permissions object for the groups has "true" on every permission. I can confirm that I'm using POST for both /createsubgroup and /deletegroup, and strangely enough creating groups at the top level works.

Any ideas anyone?

Thanks!
IW


Re: New endpoint: /creategroup

 

Hi Isaac,

On Fri, Nov 3, 2017 at 6:13 PM, Isaac Whitfield <iw@...> wrote:

Ok all is good; I can create a group fine. I'm having issues deleting it after creation though (in tests); it says invalid permissions but I can see that I do have the delete_group permission for the group I'm trying to remove. Is this an API issue?

I think, but am not positive, it's because you're using DELETE instead of POST. Can you try again with POST? I did not test with DELETE, and looking at the code, I don't think it supports that (but I suppose it should).

Thanks,
Mark


Re: New endpoint: /creategroup

Isaac Whitfield <iw@...>
 

Hi Mark,

Ok all is good; I can create a group fine. I'm having issues deleting it after creation though (in tests); it says invalid permissions but I can see that I do have the delete_group permission for the group I'm trying to remove. Is this an API issue?

Thanks,
IW


Re: New endpoint: /creategroup

 

Hi Isaac,

On Wed, Nov 1, 2017 at 11:11 PM, Isaac Whitfield <iw@...> wrote:

I'm getting an interesting issue though; my calls to create groups are returning the maintenance page rather than an actual result - I verified that it's not actually down for maintenance as I still see errors if I use a period in the domain name. Maybe just a bad flag somewhere making that page return?

Doh! Sorry about that. Fixed now.

Mark 


Re: New endpoint: /creategroup

Isaac Whitfield <iw@...>
 

Hi Mark,

Yes that does make sense - I'll make sure that we're all aware of that (maybe we already are). I've modified my client code to work correctly with the POST calls, and it appears to work now that I've changed the domain name too.

I'm getting an interesting issue though; my calls to create groups are returning the maintenance page rather than an actual result - I verified that it's not actually down for maintenance as I still see errors if I use a period in the domain name. Maybe just a bad flag somewhere making that page return?

Thanks!
IW


Re: New endpoint: /creategroup

 

Hi Isaac,

On Wed, Nov 1, 2017 at 9:12 AM, Isaac Whitfield <iw@...> wrote:

Ok, will use POST (doh!).

Hey, that one's on me as well. The docs need to be more clear and I need to return a specific error for that.

 
I'm a little confused on the limitation with the dots; I'm trying to create top level enterprise groups (for the LF projects). They will have a custom domain, so I figured I'd have to do that using the group name? 

Maybe I'm misunderstanding how it works; is there some other way I should specify the domain for the group? 

Ok, so this is a little confusing, and is a result of how Groups.io developed.

The create group and create sub group endpoints are for creating normal groups on the groups.io domain. An enterprise group is just a normal group(with subgroups) with a few extra bits set (that's a part that I still have to do by hand). So for example, the odpi groups started as a group named odpi along with a bunch of subgroups. When the lists were transferred over, I had to set some flags and specify that odpi was now an enterprise group with the lists.odpi.org domain. But in every other way, it's still a normal group and all the API calls work with it. For your purposes, the name of the group you create doesn't really matter.

(More info than you want to know: the system is designed this way because of a typical lifecycle of a group, and I wanted email addresses to be backwards compatible. That is, you start with a normal list, then later you add a subdomain and subgroups, then later on you decide you want to turn it into an enterprise group.)

The process of turning a normal group into an enterprise group also includes some other things, like setting up DNS records, getting a certificate, and telling Facebook and Google to allow oauth login callbacks from those domains. I hope to automate all that at some point, but have not yet.

Hope this makes sense. Please let me know if you have any questions.

Thanks,
Mark


Re: New endpoint: /creategroup

Isaac Whitfield <iw@...>
 

Hi Mark,

Ok, will use POST (doh!).

I'm a little confused on the limitation with the dots; I'm trying to create top level enterprise groups (for the LF projects). They will have a custom domain, so I figured I'd have to do that using the group name? 

Maybe I'm misunderstanding how it works; is there some other way I should specify the domain for the group? 

Thanks in advance (and for your patience),
IW


Re: New endpoint: /creategroup

 

HI Isaac,

Looks like you were submitted GET requests. That endpoint (and any endpoint that modifies things) requires a POST. I will look into adding a custom error message for that.

Also, it appears you wanted to use the group name 'foobar.com', which is an invalid name (we don't allow periods).

Hope this helps.
Mark

On Tue, Oct 31, 2017 at 7:08 PM, Isaac Whitfield <iw@...> wrote:
Hey Mark,

Yep, got past that error. Unfortunately now seeing "bad_request" and the extra just says "privacy". I tried setting "group_privacy_none" and "group_privacy_unlisted". Any idea what I might be doing wrong?

Thanks!
IW