Date   

Color names #important

 

Hi All,

I have changed how we handle colors internally. Where this will be seen is in the API and in any exported JSON files (when you export a group or a database table).

Previously, color names in the API and through exported JSON files started with either tag_ or column_color_. Now all color names just start with color_.

If you have a JSON database table export that you wish to re-import at some point, simply doing a search/replace on the color names will ensure that the proper colors are imported.

Please let me know if you have any questions.

Thanks,
Mark


Re: Get Events Limit #api

Seth Tartar
 

Hello Mark,

It is not an issue for my use case but noticed it as I was testing and so wanted to bring it to your attention since the start / end response elements appear to be reflecting the limit while the returned data shows otherwise. 

Thanks,
Seth

On Fri, Apr 22, 2022 at 11:25 Mark Fletcher <markf@corp.groups.io> wrote:
Hi Seth,

I apologize for not getting back to you sooner. Yes, this is currently expected behavior (and as I see, it is not noted in the docs. I will change that). My thinking was that if you specify a start and end date, that you want all events within that interval. 

Is ignoring the limit an issue for you?

Thanks,
Mark

--
Seth - KD0TEL


Re: Get Events Limit #api

 

Hi Seth,

I apologize for not getting back to you sooner. Yes, this is currently expected behavior (and as I see, it is not noted in the docs. I will change that). My thinking was that if you specify a start and end date, that you want all events within that interval. 

Is ignoring the limit an issue for you?

Thanks,
Mark


Re: Get Events Limit #api

Derek Milliner
 

Hi Seth,

On Thu, Apr 14, 2022 at 05:28 PM, Seth Tartar wrote:
It appears that when Start & End Date are both provided Limit parameter is ignored. Is this expected?
I just did a quick test on my sandpit group and the limit parameter does indeed seem to be overlooked, at least in part. The reply list keys 'start_item' and 'end_item' do reflect the limit even though all matching events are returned. The key page_token has an effect, in that it appears to discard the first (limit * page_token) events.

Feels more like a bug than intentional; one for Mark...


Re: Get Events Limit #api

Seth Tartar
 

Hello,

Following up to see if this is expected behavior.

Thanks,
Seth

On Thu, Apr 14, 2022 at 11:28 AM Seth Tartar via groups.io <seth.kd0tel=gmail.com@groups.io> wrote:

Hello All,

It appears that when Start & End Date are both provided Limit parameter is ignored. Is this expected?

Example:

https://groups.io/api/v1/getevents?start=2022-04-11&end=2022-05-11&limit=2&group_id=85235

Thanks,
Seth


Get Events Limit #api

Seth Tartar
 

Hello All,

It appears that when Start & End Date are both provided Limit parameter is ignored. Is this expected?

Example:

https://groups.io/api/v1/getevents?start=2022-04-11&end=2022-05-11&limit=2&group_id=85235

Thanks,
Seth


Re: Questions on Get Events #api

 

On Mon, Apr 11, 2022 at 11:17 AM Seth Tartar <seth.kd0tel@...> wrote:
Thanks Mark!

So to verify, if I pass in 2022-04-11, it would be processed as 2022-04-11 00:00:00-0:00? So if the events are in Chicago Central time, I should expect to see items returned with a start date of 2022-04-10 19:00:00-5:00?

Correct.

Mark 


Re: Questions on Get Events #api

Seth Tartar
 

Thanks Mark!

So to verify, if I pass in 2022-04-11, it would be processed as 2022-04-11 00:00:00-0:00? So if the events are in Chicago Central time, I should expect to see items returned with a start date of 2022-04-10 19:00:00-5:00?

Thanks,
Seth

On Mon, Apr 11, 2022 at 12:23 PM Mark Fletcher <markf@corp.groups.io> wrote:
Hi,

On Mon, Apr 11, 2022 at 7:32 AM Seth Tartar <seth.kd0tel@...> wrote:

API Reference: 
https://groups.io/api#get_events

First, can a local or UTC time be passed with the request in the Start / End parameters?

Right now, the dates passed in are evaluated as UTC. You can't currently pass in specific start times nor can you specify a different timezone.
 

Second, when I submit the below request, I'm receiving events that occur before the start date.

This should be fixed.

Thanks,
Mark 


Re: Questions on Get Events #api

 

Hi,

On Mon, Apr 11, 2022 at 7:32 AM Seth Tartar <seth.kd0tel@...> wrote:

API Reference: 
https://groups.io/api#get_events

First, can a local or UTC time be passed with the request in the Start / End parameters?

Right now, the dates passed in are evaluated as UTC. You can't currently pass in specific start times nor can you specify a different timezone.
 

Second, when I submit the below request, I'm receiving events that occur before the start date.

This should be fixed.

Thanks,
Mark 


Questions on Get Events #api

Seth Tartar
 

Hello All,

Been playing with the API a bit and I have a few questions.

API Reference: 
https://groups.io/api#get_events

First, can a local or UTC time be passed with the request in the Start / End parameters?

Second, when I submit the below request, I'm receiving events that occur before the start date.

API Request:
https://groups.io/api/v1/getevents?start=2022-04-11&limit=2&group_id=85235

Portion of API Response:

"data": [{

"id": 1225228,

"object": "event",

"created": "2021-07-30T13:05:49.480706558-07:00",

"updated": "2021-12-11T21:10:14.759394854-08:00",

"group_id": 85235,

"start_time": "2022-04-09T18:00:00-07:00",

"end_time": "2022-04-09T20:00:00-07:00",

What might I be missing?

Thanks,
Seth




Re: Question on Remove Member API call #api #removemember

 

Got it. Thanks much. Will try again.

Kevin

On Feb 4, 2022, at 3:25 PM, Eric Searcy <eric@linuxfoundation.org> wrote:

On 2/4/22 3:15 PM, Kevin McKean wrote:
Thanks Mark! Maybe I’m not following this. Since the action is to remove a member, I used the unique user ID for that member — in our group these are mostly 7-digit numbers starting with a 6. Basically, I started with the person’s email, and then did an API call to get their user_id, then did the remove call using that value. Please forgive my ignorance, but what is the difference between the two IDs you are talking about? Sorry — away from desk or would include more specific info.
Hi Kevin,

As a "user", I have a "membership" on each group (and subgroup) I am on. Each membership (member_info object) I have, has a unique membership ID. To remove a user from a list/group, you don't remove from the group by the ID of the user, you remove by the ID of the "membership", which is the intersection between a user and a group. It might seem redundant (since you are specifying the group as well) but that's how it works and is documented.

-Eric


Re: Question on Remove Member API call #api #removemember

Eric Searcy
 

On 2/4/22 3:15 PM, Kevin McKean wrote:
Thanks Mark! Maybe I’m not following this. Since the action is to remove a member, I used the unique user ID for that member — in our group these are mostly 7-digit numbers starting with a 6. Basically, I started with the person’s email, and then did an API call to get their user_id, then did the remove call using that value. Please forgive my ignorance, but what is the difference between the two IDs you are talking about? Sorry — away from desk or would include more specific info.
Hi Kevin,

As a "user", I have a "membership" on each group (and subgroup) I am on. Each membership (member_info object) I have, has a unique membership ID. To remove a user from a list/group, you don't remove from the group by the ID of the user, you remove by the ID of the "membership", which is the intersection between a user and a group. It might seem redundant (since you are specifying the group as well) but that's how it works and is documented.

-Eric


Re: Question on Remove Member API call #api #removemember

 

On Fri, Feb 4, 2022 at 3:15 PM Kevin McKean <kevin@...> wrote:
Thanks Mark! Maybe I’m not following this. Since the action is to remove a member, I used the unique user ID for that member — in our group these are mostly 7-digit numbers starting with a 6. Basically, I started with the person’s email, and then did an API call to get their user_id, then did the remove call using that value. Please forgive my ignorance, but what is the difference between the two IDs you are talking about? Sorry — away from desk or would include more specific info. 

You'll want to call `getmembers` to get the list of `member_info` objects, one per member. Those contain all the subscription information for each member of your group. The `removemember` call operates on `member_info` ids, which are different from the user_id you're referencing. Internally, the Groups.io database has user, group and subscription tables. The `removemember` call operates on subscriptions, which in the API are referred to as `member_info` objects.

Hope this helps.
Mark


Re: Question on Remove Member API call #api #removemember

 

Thanks Mark! Maybe I’m not following this. Since the action is to remove a member, I used the unique user ID for that member — in our group these are mostly 7-digit numbers starting with a 6. Basically, I started with the person’s email, and then did an API call to get their user_id, then did the remove call using that value. Please forgive my ignorance, but what is the difference between the two IDs you are talking about? Sorry — away from desk or would include more specific info. 

Kevin 

On Feb 4, 2022, at 2:10 PM, Mark Fletcher <markf@corp.groups.io> wrote:



(resending this because my original response for some reason was only sent to the sender and not the group)

Hi,

It looks like you're using the user_id value of the member info object, when you should be using the value of the id field. That means you're trying to remove a completely different person.

Hope this helps.
Mark


Re: Question on Remove Member API call #api #removemember

 

(resending this because my original response for some reason was only sent to the sender and not the group)

Hi,

It looks like you're using the user_id value of the member info object, when you should be using the value of the id field. That means you're trying to remove a completely different person.

Hope this helps.
Mark


Question on Remove Member API call #api #removemember

 

Can't make the Remove Member API call work. It keeps saying I don't have permission to remove a member, though in fact I do. Here are specifics:

Curl call being used to remove the member:
curl "https://groups.io/api/v1/removemember" -b "cookies.curl" -d "group_id=XXourgroupID" -d "member_info_id=XXpersonsID" -d "csrf=1234our19-digitnumber56789" -v

Note that I have tried both my log-in as a moderator and also the owner account for the group for the login. Both run into the same problem.

Here are the permissions from the "perms" section of the log-in output for the owner account, which shows that "remove_members" is true:

{"object":"perms","archives_visible":true,"polls_visible":true,"members_visible":true,"chat_visible":true,"calendar_visible":true,"files_visible":true,"database_visible":true,"photos_visible":true,"wiki_visible":true,"member_directory_visible":true,"hashtags_visible":true,"guidelines_visible":false,"subgroups_visible":false,"open_donations_visible":false,"sponsor_visible":false,"manage_subgroups":true,"delete_group":true,"download_archives":true,"download_entire_group":true,"download_members":true,"view_activity":true,"create_hashtags":true,"manage_hashtags":true,"manage_integrations":true,"manage_group_settings":true,"make_moderator":true,"manage_member_subscription_options":true,"manage_pending_members":true,"remove_members":true,"ban_members":true,"manage_group_billing":true,"manage_group_payments":true,"edit_archives":true,"manage_pending_messages":true,"invite_members":true,"can_post":true,"can_vote":true,"manage_polls":true,"manage_photos":true,"manage_members":true,"manage_calendar":true,"manage_chats":true,"view_member_directory":true,"manage_files":true,"manage_wiki":true,"manage_subscription":true,"public_page":true,"sub_page":true,"mod_page":true}

Yet when the curl command executes, the api returns a 400 error and this explanation:
{"object":"error","type":"inadequate_permissions","extra":""}

I'm baffled. Can't find anything in the API help pages that explains this. And in fact, the example "error" message in the API help page for that command is a similar permissions error.

Anybody else had this problem? Any clues how to fix? Thanks all -- the API is really terrific.

Kevin, SF Beekeepers





API Developer to connect groups.io to a CRM ?

RHSC Communications <communications@...>
 

Hello Groups.io community,

We are considering switching our current listservs to groups.io and I was wondering if there are any developers for hire that would be interested in creating a sync tool that would connect our CRM to groups.io (both have an API).

We are interested in the following functionality: whenever a contact is updated/created/deleted in our CRM (with a certain tag), the same contact will be added/updated/deleted from the specific sub-group they are part of. Basically we want to sync contacts from CRM to Groups.io.

Do let me know if you have anyone that you could recommend it taking such a job!

Many thanks!


A Lesson I Just Learned...

Jeff Scheel <jeff@...>
 
Edited

To help all the future API users and writers, I just learned that what the documentation calls a "boolean" (on POSTs) is not a JSON Boolean to Python, but rather a string of value either "false" or "true".  It took a fair amount of playing with curl and postman (and then Python) to figure this out.

Hopefully, this tip will help someone else.
-Jeff


WordPress integration - for membership plugin

Wade Peterson <email@...>
 

Wondering if anyone is working on a WordPress / Groups.IO integration, or possible plug-in that would synchronize between Groups.IO and a membership plug-in such as:

 

I’m part of a sportscar club that has both a website and a Groups.IO group.  This way, we could allow members to go to our normal website, for registration (which would synchronize with Groups.IO, sending invites, etc.); display the Groups.IO member directory; maintain their own user information (which would include additional custom fields such as car make and model, etc.)

 


API endpoint to add hashtags to existing topics?

Derek Milliner
 

I may be missing it, but is there an API endpoint or a methodology to update existing topics with hashtags? A group member has bravely (foolishly?) volunteered to work on classifying topics transferred from a Yahoo! group, but the prospect of having to manually update some 16,000 topics is daunting to say the least. I'd hoped to be able to develop some tooling to automate at least some of the process.

Regards,

Derek   

1 - 20 of 272