How to add new added people to existing project ? Which API i need to use? - activecollab

I am using active Collab system to manage my project and using API from my website to add new task, new company, and new user.
My only issue with this is I am not able to add newly added user to my existing project member list.
Please let me know which API i need to call to add newly added user to member list of existing project.

You make a post request to '/projects/{projectId}/members' with user_id payload.
Using the Active Collab Feather SDK:
$client->post('/projects/100/members', [
"user_id" => $collabId
]);

Related

How to pass users through stripe checkout

I'm making an online e-commerce application with next js, firebase, and stripe. When a user clicks on the checkout button, it redirects them to the stripe checkout link. After they pay with that, a request is made to my firebase cloud function to add their order into my firestore database. Ideally, I would be able to pass a user into the stripe link, and then into the cloud function so that the user can view their orders on the website. The problem is that I don't know how to pass a user into the stripe checkout. Are there any methods I could use?
Any help is appreciated.
You can use Firebase UID of the user or any other information in metadata for stripe checkout sessions.
const session = await stripe.checkout.sessions.create({
payment_method_types: ['card'],
metadata: {user_id: <firebaseUID>},
});
Metadata is useful for storing additional, structured information on an object. As an example, you could store your user's full name and corresponding unique identifier from your system on a Stripe customer object. In metadata use objects with only simple data, nested objects will give error.
For metadata details you can refer Document
Stripe Document
Process payments with Firebase refer Document

EWS - OnNotificationEvent => which fields were modified?

I'm getting streaming notifications from folder: 'Calendar' by using the EWS Managed API.
I have subscribed to EventTypes: Created, Moved, Modified, and Deleted.
When I get a notification where the EventType = Modified, I can read values like ItemId and ChangeKey.
My question: Is it possible to find out which fields were modified?
Or can I somehow get the previous version of the calendar item (before modified)?
Any suggestions appreciated.
No its expected in the instance that you are synchronizing changes that you would have a local version to compare any changes against. On Exchange under the recoverableItems Non_IPM_Subtree folder there is Calendar Logging folder that does store information about changes made to the calendar items but this is meant for Calendar repair/diagnostics rather then synchronization.

Import custom field options from one Infusionsoft app to another

I am trying to find a way to update a custom field automatically within multiple Partner Infusionsoft apps when I manually update the field with new options within our main Infusionsoft app.
The idea is to avoid manually logging into every Partner Infusionsoft app that we manage, individually, to update the custom field options so that they match our main app custom field options when it is updated. The custom field is constantly being updated with new options that need to be mirrored within all of our partner apps.
The process would not need to be entirely automatic. We could manage using a trigger to update the rest of the apps whenever we have manually updated the custom field in our main app.
Can anyone please steer me in the right direction or tell me if this isn't even possible?
Yes this is possible with the API. Unfortunately there isn't a REST webhook for when a custom field is modified, so it would require a constant poll against what you would consider the master application. Constantly check the custom field and see if it's values changed. This is the rest documentation for that:
https://developer.infusionsoft.com/docs/rest/#!/Contact/retrieveContactModelUsingGET
That will include all the possible options for the field.
Unfortunately you can't modify a custom field in the newer REST API so you will have to use xmlrpc. The rest API only let's you create according to the documentation.
Here are the docs for the endpoint you would use with xmlrpc to update all the other apps to match the master application.
https://developer.infusionsoft.com/docs/xml-rpc/#data
https://developer.infusionsoft.com/docs/table-schema/
DataFormField is the custom field information. You would use the data endpoint to modify the values.
Be careful when you are polling the master application to not go over usage limits and apply best practices.

How do I add a custom field for a new Okta app integration?

I am creating a new Okta integration for our app and need to require users to enter a subdomain, where can I do this? We will be using SAML.
As you can see in this example for the slack integration ( http://ronz.io/gPgAeS), they are able to add a custom field to allow for the domain or subdomain to be entered.
Where in the setup can I add this? So that Okta users can enter their subdomain for our app when adding the application.
Please let me know if you need any additional context.
I'm guessing this is a custom application rather than an app in the OIN ? In which case you need to build a SAML templated app, which will allow you to add as many attributes required by the SP.
If you go to Applications -> Add Applications -> There should be a Create button on the page allowing you to define your app.

Working with multiple facebook apps user id v1.0 and v2.0

We're using multiple Facebook apps for our product, in V1.0 we used to get the same user id for all apps. We save accounts collection in our db in which we save Facebook id in and creating new accounts for users in which we don't have their FB id already.
Last week we've created a new app, when we started to use it we found out that we're getting a different id for existing users and we're creating a new account for them in our db. (This happened because the new app was created on v2.0 as explained here - https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids)
I read that we can use business manager in order to define all apps and get all the user id for all apps under the same business (https://developers.facebook.com/docs/apps/for-business), but I couldn't find how can I connect these ids to the original id.
I saw a hack that once I have app_scoped_id, I can make a another FB api call to get the original id (Get Facebook User ID from app-scoped User ID) but this means I keep managing the FB ids on our db, is this a good approach? or should I move on to manage the app scope ids? how can I get them for my V1.0 apps before this transition takes place? can I migrate my data in db (when having FB global ids only)? or do I must have a user access token in order to get this info?
Thanks!
Ilana