Uploading documents to a deal in hubspot - hubspot

I want to implement the following use case and I'm not sure how to do this with the Hubspot API and I don't find any solution within the documentation.
I created a custom request flow which is creating contacts and deals within Hubspot programmatically via the API in the next step the user should upload documents related to his case and I would like to upload and associate these documents with the related deal. Could someone help me or point me to the right spot in the documentation on how such a scenario can be established with the API.

I got the following answer on the community board of Hubspot which worked for me:
You can upload a File (and set the permissions) using the CMS Files
API.
Once you've upload the file you can the associate the file to your
deal (using the File ID returned from the CMS Files API) with the
Create Engagement API.
Link: https://community.hubspot.com/t5/APIs-Integrations/Upload-File-to-a-contact/m-p/398156#M39358

Related

OneDrive Custom Metadata on Files

I would like to store some additional metadata with documents that I am uploading to OneDrive (Business) using the OneDrive API, for example type of document, some additional information to search on , ...
Does anyone know if this is possible at this time? I noticed the following URL
https://github.com/OneDrive/onedrive-api-docs/blob/master/misc/custom-metadata.md
But only support for OneDrive Personal??
To create a new facet, the OneDrive team needs to be informed via mail ?
Before a new custom facet can be used, you need to define its schema and register it with OneDrive. To register your custom facet, contact OneDrive Facet Registration and provide your client_id and schema definition JSON.
Best regards,
Jens
Reviving a post a bit later because my search found this question. I am going through custom facet registration at present. It is necessary to email the OneDrive team, and as part of that I needed to confirm in my reply that this was indeed only for OneDrive personal, not business / Sharepoint.
The e-mail link is shown in the OneDrive dev docs:
https://dev.onedrive.com/misc/custom-metadata.htm

How to get survey response as PDF through API in SurveyMonkey?

I have gone through the API documentation of Survey Monkey but i am unable to find any option for retrieving the PDF associated to the response through the API.I need to import it in salesforce. Is there any work around for that?
There isn't an API to create a PDF of your responses at the moment with SurveyMonkey.
You can watch the docs for updates on when that is added. If you're interested, there is a Salesforce integration coming you can fill the form here if you're interested.

Can I use Autodesk viewing API to render local DWG (2D) files to my browser?

The main goal of my project is to read Autocad(DWG) drawings from my local server to output them in a web browser (Chrome).
I managed to do it with the View and Data API in JAVA from Autocad with buckets, Key, etc. but when it comes to read offline files with this sample code from https://github.com/Developer-Autodesk/view-and-data-offline-sample, the DWG format did not work.
Do you have suggestion or have a clue to use the offline API with DWG files?
The Autodesk View & Data API (developer.autodesk.com) allows you to display a DWG on your website using a zero-client (WebGL) viewer. You need to upload the DWG to the Autodesk server, translate it, and either then download the translation to store on your local server (as demonstrated on extract.autodesk.io) or keep it on the Autodesk server. You might consider downloading it to be advantageous because then you don't need to implement the OAuth code on your server.
Buckets on the Autodesk server can only be accessed using the accesstoken created from your API keys, so it is secure in that only someone with your accesstoken and who knows the URN can access your translated file. However, for the viewer on your client-page to access the file, you need to provide it with your accesstoken. This does mean that someone could separately access your translated file by grabbing the accesstoken and URN from your webpage. But if you're serving up the model on a public page, then you presumably don't care about that.
There is a 'list' API available, but this is white-listed (available on request), so getting your accesstoken and urn for one file doesn't automatically give access to your other files - unless someone can guess the other filenames (or iterate to find them).
If you use a non-permanent bucket, then your original (untranslated file) becomes unavailable when the bucket expires, or you can explicitly delete the untranslated file (using the delete API).
Files translated via the View & Data API are not accessible via A360. They are stored in a separate area. (But I wouldn't be at all surprised if an A360 file access API became available in the near future :-).
Finally, unless you want to interact with the displayed file via the viewer's JavaScript API, you may prefer just to upload your files to A360, share the translated model, and then iframe embed them in your webpage.

OneDrive API: creating and receiving item (embedded) links

1) How do I create an embedded link via the OneDrive API (https://api.onedrive.com/)? I know that it is possible to create a view or edit link via the following POST call via:
POST https://api.onedrive.com/v1.0/drive/items/{item-id}/action.createLink
Body: { "type": "view|edit" }
But requesting 'embed' isn't possible, although the documentation shows that it is one of the valid types. I know that it is possible via the Live SDK:
https://apis.live.net/v5.0/{file-ID}/embed?access_token=ACCESS_TOKEN
But how do I do this for the OneDrive API?
2) Is it possible to receive the already existing links via the OneDrive API in another way than via creating a new one via {file-ID}/action.createLink call? For example by expanding the metadata?
https://api.onedrive.com/v1.0/drive/items/{item-id}?expand=***links/permissions***
I found that the same question was asked on the Github OneDrive forum. You see their answers below:
Currently the OneDrive API only supports view and read links. You can vote to include embed support via their User Voice page.
In the future, you'll be able to enumerate existing links on an item (at least those links created by your app) to discover existing URLs without the need to call createLink. There is not yet a timeframe for when we'll roll that out, but it should be soon.

How do I upload a photo / image to LinkedIn via API?

LinkedIn has a /share API endpoint which accepts a link and a message. The link is afterwards expanded to an OpenGraph card and that gives you a way to stick an image preview in there, but it seems there's no other way to upload an image/picture to LinkedIn feed like you can do in the web app itself.
Is there a way, private API, undocumented endpoint or some other way to do that?
Creating a rich media share is done in two steps. First, the media is uploaded to LinkedIn's media platform. Then, a personal or organization share referencing that media is created.
This URL might be help you.
https://developer.linkedin.com/docs/guide/v2/shares/rich-media-shares#upload
No. You need to give us the URL and we'll scrape it (or pull it from our cache).