Date   

Re: Help! I'm confused on how to migrate via the api

sierragamers@...
 

Thank you! I saw that, and am happy to upgrade the site to premium. (The rest API says the site needs to be upgraded to use the directadd call)

The parameters to Directadd only are email address -- it doesn't have a password. So .. I was confused about what would happen to the user account. Does it generate them a fake password? Or what happens?

As soon as I get your subscription I'll upgrade to premium and give it a try.

-Ken W


Re: Help! I'm confused on how to migrate via the api

Andrew Schaefer
 

Have you looked at directadd? It adds the users and subscribes them. 

-Andrew

On Fri, Nov 22, 2019 at 12:05 PM sierragamers via Groups.Io <sierragamers=kensblog.com@groups.io> wrote:

I can successfully use the Rest API, but now need help going the next step

I want to move over forum messages, but in order to do so I need to create USERS and subscriptions for the original posters. When I add a USER it won't let me add subscriptions to their user object or post messages on their behalf, until the User account is confirmed. 

How can I add users that are already confirmed?

-Ken W



--


Help! I'm confused on how to migrate via the api

sierragamers@...
 

I can successfully use the Rest API, but now need help going the next step

I want to move over forum messages, but in order to do so I need to create USERS and subscriptions for the original posters. When I add a USER it won't let me add subscriptions to their user object or post messages on their behalf, until the User account is confirmed. 

How can I add users that are already confirmed?

-Ken W


Turning off notifications when importing users and messages

sierragamers@...
 

Can you give me a quick hint as to all of the notifications that I should turn off prior to importing thousands of messages and members? (via the rest API)

I'd like to be able to get this all set up quietly (without spamming everyone with thousands of notifications as I run the import). Once I have everything setup correctly I'll send an email to all the members, but I don't want them emailed every time I insert a new message, or welcome messages sent as each member is inserted.

-Ken W


Re: Problem creating a draft

sierragamers@...
 

Nevermind -- I got this one working by posting the request differently.

Thank you! All good (for the moment)

-Ken W


Problem creating a draft

sierragamers@...
 

Greetings. I have several thousand posts, replies and members to move over from several websites. My plan is to use the API to do so and I have just started experimenting.

I have successfully logged in and have a CSRF. 

I am trying to get a DRAFT object and hit a road block. I am getting this response:

{
    "object""error",
    "type""bad_request",
    "extra""invalid draft_type"
}

I have verified the CSRF, the group_id and that the user has the can_post: true permission.

I am specifying "draft_type_post" for the draft_type.

Any ideas?

-Ken Williams



Re: enable download_archives permission

valcos
 

thanks Mark for answering!


Re: enable download_archives permission

 

Hello,

The thing to remember with permissions is that if you don't have permission to do something using the website, you won't have permission to do it using the API.

Mark

On Fri, Nov 1, 2019 at 11:22 AM valcos <valcos@...> wrote:
The permission to download archives can be enabled by checking the corresponding box within the `Admin>Settings>Message Policies` page. Note that if this box is checked, any subscriber can download the archives.
 


Re: enable download_archives permission

valcos
 

The permission to download archives can be enabled by checking the corresponding box within the `Admin>Settings>Message Policies` page. Note that if this box is checked, any subscriber can download the archives.
 


Re: Files access?

Dennis Parker
 

How far back does the yahoo storm set you on your roadmap? I am interested in using the API to upload files, but it is marked "don't use" right now. 

Can you estimate when you might have time to get to work of this kind? Weeks? Months? No pressure, just want to know if I need to think about doing my tasks a different way.

Thanks,

Dennis


Re: enable download_archives permission

valcos
 

The group's owner doesn't know how to enable the download_archives permission. Is there any documentation that explains how to do that?

Cheers,
Valerio


enable download_archives permission

valcos
 

Hi there,

How can I enable the download_archives permission to download archives from a group? Should I contact the group's owner or there are some steps I can do on my side?

Thanks in advance,
Valerio


Re: Files access?

 

On Sat, Sep 14, 2019 at 7:12 PM Matt Dorn <matt.dorn@...> wrote:
There doesn't appear to be an endpoint to access a group's file uploads.  Is this on the roadmap?  I'm still wading through the API reference documentation so I may be missing something.

It's on the road map. Probably in a week or two.

Thanks,
Mark 


Files access?

Matt Dorn
 

There doesn't appear to be an endpoint to access a group's file uploads.  Is this on the roadmap?  I'm still wading through the API reference documentation so I may be missing something.

Thanks,

Matt


Re: how to login using Facebook\Google?

 

On Tue, Aug 13, 2019 at 11:07 AM, Fred Nielsen wrote:

For accounts that leverage Facebook or Google Oauth, how should a login API call be transacted - or does the API not support this yet?

I have added new endpoints to log in via Facebook or Google using Oauth. Please see the API docs in the Login section.

Cheers,
Mark


BREAKING CHANGES #important

 

Hello,

There are some upcoming breaking changes to the API. 

The most important change is that we're switching from HTTP Basic Auth to a cookies based authentication. Starting now, the /login endpoint will set one or more cookies. The `token` field in the returned login object will be blank. Your existing Basic Auth tokens will continue to work until the end of September, or when they expire, whichever comes first.

Along with switching to a cookies based authentication system, we have added CSRF protection to all POST endpoints. When using the `login` endpoint, the User structure that's returned now includes a `csrf_token` field. Use that value for the `csrf` POST parameter now required by these endpoints. NOTE: During this transition period, if you use HTTP Basic Auth, the csrf POST value is not required, so your code should continue to work.

Finally, we are switching the domain of the API. It has been https://api.groups.io. It is moving to https://groups.io/api/. The old domain will continue to work until the end of September, but please update your code as soon as possible.

I apologize for this, but these changes are needed. The switch to a cookies-based authentication was to support chat; no Javascript websocket libraries support Basic Authentication or adding HTTP header fields. The other changes were a result of this as well.

Your code should continue to work as is until the end of September, but please update as soon as possible. Please let me know if you have any questions.

Thanks,
Mark


Re: how to login using Facebook\Google?

 

On Tue, Aug 13, 2019 at 11:07 AM Fred Nielsen <fredless@...> wrote:
For accounts that leverage Facebook or Google Oauth, how should a login API call be transacted - or does the API not support this yet?
_._,_._,_

The API doesn't yet support it, but that needs to happen soon as we continue development of the app. 

Thanks,
Mark


how to login using Facebook\Google?

Fred Nielsen <fredless@...>
 

For accounts that leverage Facebook or Google Oauth, how should a login API call be transacted - or does the API not support this yet?


Re: How do I get permissions to remove a user?

 

On Tue, Aug 6, 2019 at 7:43 PM Timothy Fong <timfong888@...> wrote:
Hi, yes. Some part of docs need to be clearer. I wouldn’t have associated id of a member info object to be referred to as a sub_id. 

That said: I did in fact try to remove a member I added through the api and could not. And I could not figure out where the permission was set to prevent that. 

Which endpoint did you use to remove the member?

Thanks,
Mark 


sub_id renamed to member_info_id

 

Hi All,

To make things more clear, I have renamed all instances of the sub_id parameter to member_info_id. To maintain backwards compatibility, sub_id will still be supported, but it isn't mentioned in the docs, and going forward you should use member_info_id instead.

This affects calls in the Members and User sections of the API.

Please let me know if you have any questions.

Thanks,
Mark

101 - 120 of 230