Re: What values are valid for sort_field in Search Archives?
#api
groups@...
On Tue, Sep 7, 2021 at 01:04 PM, Mark Fletcher wrote:
Sweet -- I just tried it and it works! (And I see you've updated the docs as well. Thank you!) -Dave
|
|
Re: What values are valid for sort_field in Search Archives?
#api
On Tue, Sep 7, 2021 at 8:57 AM <groups@...> wrote:
This should be fixed now. You can use `relevance` or `created`. Cheers, Mark
|
|
Re: Where's the token from login endpoint?
#api
groups@...
Ok, got it. The token is not a variable to pass, but rather the username. Thanks. It would be helpful to future folks to probably provide this information in the API documentation. :-) Thanks again.
|
|
What values are valid for sort_field in Search Archives?
#api
groups@...
Hi All, I already searched the group and found one question similar to mine, but it was unfortunately unanswered. :-( I am specifically trying to set "sort_field" in the "Search Archives" API call. Without setting it, the returned topics list is I suppose, in an order of "relevance". I want the order to be chronological. I have reviewed the API documentation thoroughly, and "sort_field" is not defined consistently, The usual definition for "sort_field" is: "The field to sort on. Valid values are dependent on the call." This is true for "Search Archives". I have tried the following parameters for "sort_field" in the "Search Archives" API call, but unfortunately, none seemed to work: "id, created, subject, title, name, order". In all instances, the return messages were "sort_field": "relevance". Is "sort_field" parameter simply un-implemented in the "Search Archives" API? Is there any chance it will be implemented, or will I simply have to perform my own sort on the returned objects? Thanks, -Dave
|
|
Re: Where's the token from login endpoint?
#api
On Tue, Sep 7, 2021 at 8:10 AM <groups@...> wrote:
To use a token with curl, include the token using the '-u' parameter to curl, so something like: Also note the colon at the end. Cheers, Mark
|
|
Re: Where's the token from login endpoint?
#api
groups@...
On Tue, Sep 7, 2021 at 04:37 AM, Derek Milliner wrote:
Derek, Thank you so much. That explains my confusion -- if the documentation is mixed up, that provides a shaky foundation to build on. So I followed your example adding the "token=yes" POST parameters and was able to get a token back. The next thing I would like to do is to get a group's topics using token-based auth. The example in the documentation is:
For example, this below results in an "unauthorized" error: dave@Moonquake:~ $ curl "https://groups.io/api/v1/gettopics?group_name=<group_name>" -d token="<redacted>"
*pulls out hair* dave@Moonquake:~ $ curl "https://groups.io/api/v1/gettopics?group_name=<group_name>" -a 123456: -d token="<redacted>"
I appreciate all your assistance with me figuring out how to use the API. -Dave
|
|
Re: Where's the token from login endpoint?
#api
Meant to add to that that the example in the API docs (https://groups.io/api#login) is a bit misleading on that - it shows a cookie-based request with a token-based response :-)
|
|
Re: Where's the token from login endpoint?
#api
By default the login uses cookie-based so the 'token' as such is in the cookie. If you add 'token=true' to the request (so "email=&password=&token=true") you'll get the token stanza in the return:
},
"token": "ey...EZhY"
|
|
Where's the token from login endpoint?
#api
In the log which follows, I have redacted sensitive information.
When I run curl (for a crude test) from an Ubuntu Linux 20.04 system using the /login endpoint, providing valid email and password, I get back the following JSON (re-formatted by jsonlint.com website). There is no error indicated that I can see. So...where's the "token": "", section that's supposed to be near the end of the JSON response?
Without the token, I can't really perform any other API operations, no? I have reread https://groups.io/api#login and cannot seem to locate the error.
dave@Moonquake:~$ curl "https://groups.io/api/v1/login" -c /tmp/cookies.curl -d "email=&password="
{
"user": {
"id": "",
"object": "user",
"created": "2021-09-06T15:18:09.179936685-07:00",
"updated": "2021-09-06T15:21:10.557412629-07:00",
"email": "",
"full_name": "",
"user_name": "",
"timezone": "America/New_York",
"status": "user_status_confirmed",
"profile_photo_url": "",
"post_pref": "user_postpref_html",
"per_page_pref": "user_per_page_pref20",
"allow_facebook_login": false,
"allow_google_login": false,
"allow_sso_login": false,
"csrf_token": "",
"two_factor_enabled": false,
"recovery_codes": "",
"dont_munge_message_id": false,
"about_me": "",
"about_format": "about_html",
"location": "",
"website": "",
"time_pref": "standard_time",
"date_pref": "us_date",
"monday_start": false,
"profile_privacy": "profile_private",
"default_message_view": "thread_view",
"topics_sort_dir": "sort_none",
"topic_sort_dir": "sort_asc",
"messages_sort_dir": "sort_none",
"expanded_messages_sort_dir": "sort_none",
"search_sort": "date_sort",
"search_sort_dir": "sort_none",
"photos_order_by": "",
"photos_sort_dir": "sort_none",
"album_order_by": "",
"album_sort_dir": "sort_none",
"default_calendar_view": "cal_view_month",
"default_hashtag_view": "view_grid",
"default_rsvp_view": "view_grid",
"home_page": "home_page_feed"
}
}
dave@Moonquake:~$ cat /tmp/cookies.curl
# Netscape HTTP Cookie File
# https://curl.haxx.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
#HttpOnly_.groups.io TRUE / TRUE 1633560642 groupsio <REDACTED_DATA>
|
|
Installing on a different drive other than C:
tisenhour@...
I would like to install the program on drive D: It defaults to Drive C:. My reason for wanting to install to drive D: is that my drive C: is an SSD and is very small... only 115 GB. Windows 10 has (over time) eaten up all of the free space and now I can't even up date windowz for a lack of free space. My Drive D: is an HHD, and has a terabyte of storage. I have been able to move most of my programs over to it but for some reason when I try to install N3FJP it doesn't give me an option to which drive I want to install it on. I have searched all of the FAQs and can't find anything. This may sound stupid but I just thought I would ask. Back before the Plandemic, when work was good and steady, I would just buy a new computer or a larger SSD but money is tight and I was hoping for a less costly solution. Thanks
|
|
Re: Uploading Pictures via API getting inadequate_permissions
#api
On Mon, Aug 30, 2021 at 3:11 PM Eric di Domenico <eric@...> wrote: Mark, did the ability to add a description to the picture ever get resolved? I just added the `description` parameter to the `/addphotos` endpoint. If you're still receiving a bogus response from calls to that endpoint, please send the entire response and I'll investigate. Thanks, Mark
|
|
Re: Uploading Pictures via API getting inadequate_permissions
#api
Mark, did the ability to add a description to the picture ever get resolved?
Thanks, Eric
|
|
Re: Feed of original messages
Konstantin Ryabitsev
On Thu., Aug. 19, 2021, 20:22 Mark Fletcher, <markf@corp.groups.io> wrote:
I'll be happy with anything, including an Atom feed with links to rest endpoints where I can retrieve original rfc2822 messages as received by groups.io (with all original headers and bodies). All the Atom feed needs to contain are the message-ids with perhaps minimal summaries plus the retrieval link. Best regards, Konstantin
|
|
Re: Feed of original messages
Hello, On Wed, Aug 18, 2021 at 2:34 PM Konstantin Ryabitsev <konstantin@...> wrote:
Can you give me some more information? How would you like to retrieve the original emails? Thanks, Mark
|
|
Feed of original messages
Konstantin Ryabitsev
Hello, all:
I am in charge of the lore.kernel.org service, which provides developer-friendly mailing list archives for easy retrieval and processing. It is of great importance to many developers to be able to get access to messages as they were sent out by original authors, in order to be able to verify DKIM signatures of the originating domain. Unfortunately, this is not currently possible with groups.io when using regular email subscriptions, so I am looking for a way to retrieve messages directly via API or similar means. I know that these raw messages are preserved somewhere on the backend, as I can get them via an "archive export" zip files. Anything you can suggest? Regards, -- Konstantin Ryabitsev Director, IT Core Projects The Linux Foundation Montréal, Québec
|
|
Re: Unknown Privacy Setting ""
#api
Hello, On Thu, Aug 5, 2021 at 12:11 PM <andrest2455@...> wrote:
Thanks for the bug report. It's been fixed. Cheers, Mark
|
|
Unknown Privacy Setting ""
#api
Hello,
I am working on an application that makes use of the Groups.io API, and I have run into an issue I thought would be worth asking about here. There is a group we manage that when trying to get the group settings by calling https://groups.io/api/v1/getgroup?group_id=12184 returns an empty privacy setting of "", which is not what it should be; in the Groups.io UI, the privacy visibility setting is set to "sub_group_privacy_unlisted_public_archives" (Group not listed in parent group, publicly viewable messages). Any ideas as to why the API is returning an empty privacy setting would be much appreciated! Thanks, Andres
|
|
Re: A few basic Qs from a non-programmer
#misc
David Mazur-Goulet
Thanks, Derek, for the clear answer to my questions. This can open up a world of possibilities for us.
On Thu, Jun 3, 2021 at 3:37 PM Derek Milliner <derek.milliner@...> wrote: On Fri, May 28, 2021 at 02:16 PM, David Mazur-Goulet wrote:
|
|
Re: A few basic Qs from a non-programmer
#misc
On Fri, May 28, 2021 at 02:16 PM, David Mazur-Goulet wrote:
Short answer; yes. Slightly longer answer, the API requires a valid login so an application will need to make the appropriate login calls and store/provide the resulting login token, but each login is distinct. You could if you wanted provide different login accounts for each application if you wanted to apply different permissions. A distinct login counts as a member, this may be an issue with the basic accounts for instance. If you mean as in extract the member directory of a subgroup, again yes, this would use the getmemberdirectory API call. Note that exactly what you can do through the API is controlled mainly by the permissions granted to the account you use for the API login, (in this case the "view_member_directory" permission), hence the comment above vis. different per-app accounts. Not all functionality is exposed through the API as yet; the reference docs can be found here: https://groups.io/api Cheers Derek
|
|
A few basic Qs from a non-programmer
#misc
David Mazur-Goulet
Hi everyone, We are looking to connect our groups.io account to another database and we have a few questions from a non-programmer perspective. Can we have two or three different applications interface with groups.io? Is it technically possible with the API? Is it possible to sync the directory of a subgroup with another application using the API?
|
|