In order to upload an attachment to Airtable with scripting, you must provide Airtable with a publicly accessible url for the file—not the file itself. See the documentation for more info.
If the service only gives you the file data (and not a publicly accessible url) you will need to upload the blob to another third party service that will publicly host the file, and then upload it to Airtable from the url from the third party service.