GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.backblaze.com — Integration Checklist Contents x
Integration Checklist
Contents Integration Checklist
Article summary Did you find this summary helpful? Thank you for your feedback Tools that integrate with Backblaze B2 Cloud Storage and want to be featured on the Backblaze B2 integrations page need to follow the guidelines that are outlined on this page. Click here to submit an integration. Authorization and Account IDTo call b2_authorize_account you need an application key ID and an application key. Previously the application key ID was called account ID. This may cause some confusion, but the underlying functionality has not changed. However, it's important to note that when storing the Account ID properly, integrations should only store the account ID from the response given by our service. Do not store the application key ID (formerly called account ID) provided by the user. Uploading FilesDuring an upload using the b2_upload_file or b2_upload_part API, if one of the following conditions occur, the developer should call b2_get_upload_url or b2_get_upload_part_url and re-attempt the upload using the new URL and auth key pair:
To test your code, add a Developers do not need to callb2_get_upload_url orb2_get_upload_part_url for each file (or part) they wish to upload. You can upload multiple files (or parts) in serial using a single URL/auth token pair until one of the above conditions occurs. Detailed information and pseudo-code examples can be found in the Uploading section of the B2 API documentation. Set a User-AgentA The common syntax is: User-Agent: <product> / <product-version+dependencies> <comment> For example, the User-Agent: backblaze-b2/0.6.4+python/2.7.9 Multithreading UploadsIf your tool is uploading many files, the best performance will be achieved by multithreading the upload and launching multiple threads simultaneously.
Multithreading DownloadsDownloads over 200MB should be split into parts and downloaded simultaneously. Once all parts are downloaded, the large file should be stitched together.
Handling Error Response Status CodesSee the Calling the API page section on Error Handling for a general description of error code classes. Some specific things to check in your integration are:
The rest of the error codes described below can be returned from any B2 API.
Managing Metadata for InteroperabilitySetting consistent and appropriate metadata when uploading files will allow for different Backblaze B2 clients, the Backblaze B2 web user interface and the B2 Command Line Tool to interoperate correctly. Metadata is set as an HTTP request header when uploading files. Metadata in B2 is immutable.
Deleting File VersionsBackblaze B2 automatically creates versions of files uploaded to the same bucket, with the same name. If your application allows a user to delete a file and there are multiple versions of that file, it's probably best to ask the user if they want to delete the last version or all versions. Note: Language libraries and API wrappers for Backblaze B2 should handle all of these conditions in the lower levels of the code, giving developers higher level constructs for their code. Timing Background WorkIf you are doing background work, like file synchronization, which contacts the Backblaze B2 API regularly, please select a random time during your sync period to do the background work. For instance, if you want to synchronize once an hour, please do not just start your work during the first minute of the hour. Instead, please select a random minute of the hour (let's say the '26th' minute) and do your synchronization starting at that minute. Please select the minutes independently for each of your clients. This helps spread out the load on the Backblaze B2 service so that we can provide a higher-quality of service to all users. Creating Buckets Using the APIIf your integration uses the API to create buckets on Backblaze B2, please ensure that you create the bucket as a private bucket. If you intentionally wish to create the bucket as public, please make sure you have sufficient documentation on your application and help pages that indicate this as well as the implication of creating a public bucket. Backblaze will not certify any integration that creates public buckets without this documentation present. Was this article helpful? Thank you for your feedback! Our team will get back to you How can we improve this article? Your feedback Need more information Difficult to understand Inaccurate or irrelevant content Missing/broken link Others Comment Comment (Optional) Character limit : 500 Please enter your comment Email (Optional) Email Notify me about change Please enter a valid email Related articlesWhat's Next |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |