Date   

Re: Getting archives from group-specific domains

valcos
 

I see that in the Authentication API section you can pass the parameter "domain" to get a token for that specific domain. I got a token with:

curl "https://api.groups.io/v1/login" -u 123456: -d "email=valcos@...&password=xxx&domain=lists.onap.org"

However, if I call the API endpoint: https://api.groups.io/v1/downloarchives with a group name included in the domain "lists.onap.org", I got a HTTP 400 request error. I have also tried to include the domain attribute to the downloadarchive request with no success.

How can I download archives in domains different from groups.io via the API?


Getting archives from group-specific domains

valcos
 
Edited

Hi all,

Following the doc, I can easily download archives on the groups.io domain. However, it's not clear to me how to do it when a group has its own domain (e.g., https://lists.onap.org/g/onap-users).
What is the API URL/endpoint I have to use to get these archives?

Thanks,
Valerio


Return email problems with direct_add

m.palmowski@...
 

Hi guys

I'm trying to add a simple PHP integration - when user registers on my website he's automaticly added do groups.io.

Everything is ok, user gets add to group and he gets an email - but it looks like a mix of two groups. Here are the examples:
1. Welcome to thehealthcareclubnewyork@... - I really don't know what email this is - it's not connected in any way with the group thehealthcareclubnewyork
2. Hello,

You have been added by the moderators to their Car Buying Coach Connect group thehealthcareclubnewyork@...

The address to send an email to the groups is thehealthcareclubnewyork@....

If this was a mistake, please click on the following link and you will be immediately removed:

Remove Me!

Cheers,
The Car Buying Coach Connect Team

The problem ony persists when using the API - when I add a user with emailing to thehealthcareclubnewyork+subscribe@groups.io every email is ok.

And here is my code - https://gist.github.com/palmiak/e6d5e5efe7370c7482818c23824f7183


Re: Getting all messages of a group/topic

valcos
 

Thank you for your answer, Mark!


Re: Getting all messages of a group/topic

 

On Thu, Jul 5, 2018 at 1:54 AM valcos <valcos@...> wrote:
It's possible (or planned) to fetch all messages from a given topic/group? Checking the doc, it seems that it's not possible so far.

That api endpoint has not been implemented yet.

Thanks,
Mark


Re: view_archives permission

 

Hello,

On Thu, Jul 5, 2018 at 1:37 AM valcos <valcos@...> wrote:
I'm trying to collect the archives of a group. As written in the doc, the view_archives permission is required. I see that this permission is active for https://groups.io/g/updates/topics, however in other groups is not.
How can I enable/get this permission for any group? Is this permission set by the group itself?

 It’s-archives is determinded by the group's privacy settings.

Cheers,
Mark


Getting all messages of a group/topic

valcos
 

It's possible (or planned) to fetch all messages from a given topic/group? Checking the doc, it seems that it's not possible so far.

Cheers,
Valerio


Feedback download_archives doc

valcos
 

Not sure if this is the right place to give feedback.
The example request at https://groups.io/api#download_archives is wrong

Example Request
$ curl "https://api.groups.io/v1/deletegroup?group_id=2" \
-u AUTHENTICATION_TOKEN:


view_archives permission

valcos
 

I'm trying to collect the archives of a group. As written in the doc, the view_archives permission is required. I see that this permission is active for https://groups.io/g/updates/topics, however in other groups is not.
How can I enable/get this permission for any group? Is this permission set by the group itself?

Cheers,
Valerio


Example of API call via Python

valcos
 

A simple example to query the API with the requests library:

import requests
from requests.auth import HTTPBasicAuth

token = 'your-token-obtained-via-the-login-call'

url = "https://api.groups.io/v1/getperms"
payload = {'group_id': 7}
r = requests.get(url, params=payload, auth=HTTPBasicAuth(token, ''))

print(r.json())


Re: getting a Auth token

valcos
 

Great! Thank you Mark!


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 

161 - 180 of 230