Date   

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

sierragamers@...
 

In this case I was testing, so .. yes. I could use the login link. But ...

I am writing code to migrate an existing discussion board with thousands of users and posts. I need to insert all the existing messages via the API and can't do so so without having a registered user to post them under. If I post them under my userid -- then it will appear that I posted thousands of messages. And, if I post them as the users who originally wrote the messages -- they can't be posted until the user registers. 

I'm at a roadblock until I figure this out.

-Ken W


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

Duane
 

On Fri, Nov 22, 2019 at 01:02 PM, <sierragamers@...> wrote:
Unfortunately I need to log them in first before they can post.
If it's an email address you own, use the Email Link to Log In button.  Otherwise there's no way to do it.

Duane


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

sierragamers@...
 

Darn!! I am stuck again.

I tried to post a message on behalf of a user who I registered via DIRECTADD

Unfortunately I need to log them in first before they can post. 

The login interface requires a username and password. I can't obtain a CSRF token without logging them in. And, I can't get a draft posting without a CSRF for the user.

Any ideas anyone?

-Ken Williams


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

sierragamers@...
 

Gilbert: 

I should have that answer for you in the next couple of hours... I will post here what I learn.

-Ken W


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

Gilbert Coville
 

When you import your messages, I’ll be very interested to know if they are entered (and placed into the message count matrix on the group’s home page) as the date/time that you perform the operation, or whether they take the date/time from the “Date:” lines in the messages.

The experiments I’ve tried by sending messages to the group (spoofed as original owners) took on the date/time of when they were received, not from the “Date:” header.

The Yahoo group transfers are using the original date/time info. That might be something that’s not available via the api.

Gilbert

On Nov 22, 2019, at 10:22 AM, sierragamers via Groups.Io <sierragamers=kensblog.com@groups.io> wrote:

I upgraded and tried the DirectAdd API.

It works fine, and is what I'll use for migration. It did do one thing I don't love ...

It sends an email to users that I can't stop. It means I can't get everything imported and THEN alert everyone. It will alert all the users immediately when I add them to the group and start the message import. Oh well ... I just hate spamming people when it can be avoided.

Thank you! This is looking very possible...


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

sierragamers@...
 

I upgraded and tried the DirectAdd API. 

It works fine, and is what I'll use for migration. It did do one thing I don't love ... 

It sends an email to users that I can't stop. It means I can't get everything imported and THEN alert everyone. It will alert all the users immediately when I add them to the group and start the message import. Oh well ... I just hate spamming people when it can be avoided.

Thank you! This is looking very possible... 


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

sierragamers@...
 

Hmmm ... So .. I have several sites I'm migrating. They have thousands of posts and thousands of users. I wanted to migrate everything over and then let the users know. The problem will be that if it sends them all an email before I am ready to "go live" they are going to be confused. 

Oh well .. never a dull moment. I'll experiment and see what I can do.

Thank you! Much appreciated! Hopefully I can return the favor someday.

-Ken W


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

Andrew Schaefer
 

The users get an email stating that they have been added, and it lets them finish setting up their account.

BTW I'm just a customer like you.

On Fri, Nov 22, 2019 at 12:28 PM sierragamers via Groups.Io <sierragamers=kensblog.com@groups.io> wrote:
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

Duane
 

On Fri, Nov 22, 2019 at 11:28 AM, <sierragamers@...> wrote:
Does it generate them a fake password? Or what happens?
It just creates the account.  No password needed to log in, but one can be set if wanted.  See https://groups.io/g/GroupManagersForum/wiki/Logging-In

Duane


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