Subject: The mailing list for listmasters using Sympa
List archive
Re: [sympa-users] Results of API call as input for a data source?
- From: "Stefan Hornburg (Racke)" <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-users] Results of API call as input for a data source?
- Date: Thu, 17 Oct 2019 07:51:10 +0300
On 10/16/19 11:54 AM, Dick Visser wrote:
> Hi
>
> I'm looking for a way to populate the subscribers of a list from one
> of our Slack channels, but I'm not sure how to glue this together at
> the Sympa site. The Data Source setup page lists a few options
> (SQL/LDAP), but I think the "Remote file inclusion" is the closest to
> what I would need.
> The configuration options for that are:
>
> * data location URL
> * remote user
> * remote password
>
> Which leads me to believe that this only does an HTTP GET and then
> expects the content to be one email address per line.
> Any ideas how to make this work with an API that expect a POST
> requests (and that returns JSON)?
Hello Dick,
Hack the source :-) => Sympa::DataSource::RemoteFile.
Actually it would be nice to be able to specify a filter for the content
retrieved from the API, that would solve the JSON problem.
Why does the API needs a POST request for just pulling data and which
parameters does it expect?
Regards
Racke
>
> Any hints much appreciated.
>
>
> thx
>
>
--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.
Attachment:
signature.asc
Description: OpenPGP digital signature
-
[sympa-users] Results of API call as input for a data source?,
Dick Visser, 10/16/2019
-
Re: [sympa-users] Results of API call as input for a data source?,
Stefan Hornburg (Racke), 10/17/2019
- Re: [sympa-users] Results of API call as input for a data source?, Dick Visser, 10/25/2019
-
Re: [sympa-users] Results of API call as input for a data source?,
Stefan Hornburg (Racke), 10/17/2019
Archive powered by MHonArc 2.6.19+.