macOS: Add CalDAV account (Settings/Internet Accounts/CalDAV account) programmatically - macos

Does anybody know how to programmatically (headless in Objective-C/C++, NOT by using NSAccessibility, AppleScript or any other technology accessing the UI) add a CalDAV account to the macOS system?
Manually this ca be done in System Preferences > Internet Accounts > Add an account > Add Other Account... > CalDAV account.
So far I have only found the Accounts framework, but there are no constants or any other hints how to add/create a CalDAV account.
Regards,
Dominik

At this point there is no API for doing this, but you may be able to add the account using a so called "configuration profile".
To read more about this: Configuration Profile Reference

Related

Google workplace: activate gmail via API

I need to automate some flow on google workspace, now I'm stuck at Activating Gmail via API, I couldn't find any resource or example anywhere.
Appreciate for any help pointing out the reference or answer.
Update:
So I have google workspace and I am working on automate user and their gmail account. From the screenshot I can simply click on "Activate Gmail" and it will check against my MX records and have it activated, but I'm looking for a solution where I can do it from google API using Ruby.
For this one, you will most likely make use of Directory API's users.update instead of Gmail API. Gmail API only enables you to access gmail settings and the emails, not the user settings.
Sadly, I haven't found any fields dedicated for activating/enabling Gmail. The closest thing I found was isMailboxSetup, but it only identifies if the user have its Gmail activated.
Indicates if the user's Google mailbox is created. This property is only applicable if the user has been assigned a Gmail license.
Given the circumstances above, you might need to do it manually. For more info regarding the subject, visit the reference below.
Reference:
Admin SDK: Directory API

What API to interact with Admin Gmail "Recipient address map"?

What is the Google API that will allow me to interact with Admin Gmail Advanced settings?
Right now, I'm interested in editing the Recipient address map.
In the Google Admin site, it's located at
Apps > G Suite > Settings for Gmail > Advanced settings > General Settings > Recipient address map
Gmail general settings are no more reachable from the Gmail API. In the Email Settings API migration guide it is typed «General settings are no longer available via the API». You could create an Issue Tracker feature request about mapping incoming mail addresses.

How to create an account in outlook programmatically

I wanted to create an account in standalone application like in Outlook.
Have gone through MAPI interfaces Click here! but can't find anything useful.
Also looked for the Account Manager Api Click here!
But here you can only view already added accounts. If you want to create account using Account Manager Api , it will prompt a dialog box for adding an account. Which is of no use for me because I want a code for the same.
Please let me know if there is any solution.
The parts of the IOlkAccount interface related to creating new accounts are not documented. You can use MAPI to add Exchange and PST accounts.
If using Redemption is an option (I am its author), it allows to add POP3/SMTP accounts using RDOAccounts.AddPOP3Account.

Do Facebook API Settings allow developer only access?

I am working on an app in ruby using:koala:omniauth
When I click share to wall from the application it allows me to share and
changes my permission accordingly. When I use an account that is not setup as a developer it sends 200 error "permissions not provided." but does not ask for "permissions" like it did with the account connected to facebook developer.
Is there a setting somewhere on Facebook developer that controls this?
I would like all users to be re-asked the permission and not just developers of the app.
Yes, you need to ask Facebook to review the app for special permissions..

Google Marketplace SDK - Test Install Flow issue

I have created an app in the Google Apps Marketplace SDK and now I have the "Test Install Flow" button, which is fine,. however, when I click it, a popup for business account signup appears and asks me to set up a real Google business account. How can I simply test it with the same developer account I have?
Had the same issue. It occurs when you first log in to Google with a non-Google Apps account (like a free Gmail account), after which Google Apps accounts are added (i.e. are logged in).
As Ben Clifford suggests in comments, one needs to be signed in first with a Google Apps account (after logging out completely). As a best practice, use Google Apps accounts in one web browser, and free Gmail account(s) in a different browser - to avoid further issues.
You have to test it with a Google Apps account. Apparently yours is not one of those, so they're asking you to sign up. If you have a different Google account that has Google Apps already, you can add that account to the project in Permissions -> Add Member, and then use "Test Install Flow" while logged in as that other account.

Resources