Platforms to show: All Mac Windows Linux Cross-Platform

Back to SLRequestMBS class.

SLRequestMBS.addMultipartData(data as memoryblock, name as string, type as string, filename as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Social MBS Mac64bit Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Specifies a named multipart POST body for this request.

data: The data for the multipart POST body, such as an image or text.
name: The name of the multipart POST body. This is the name that a specific social service expects.
type: The type of the multipart POST body. This is the MIME content type of the multipart data.
filename: The filename of the attachment that you want to POST. Many social services require a filename in order to accept certain POST requests, such as uploading an image or video. If your multipart data does not require a filename, pass in nil.

Possible parameter values are dependent on the target service. This information, as well as guidance on when to use a multipart POST body, is documented by the service provider.

SLRequestMBS.Constructor(serviceType as string, requestMethod as Integer, URL as string, parameters as dictionary)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Social MBS Mac64bit Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes a newly created request object with the specified properties.

serviceType: The social networking service type. e.g. SLServiceTypeTwitter
requestMethod: The method to use for this HTTP request. e.g. SLRequestMethodPOST
url: The destination URL for this HTTP request. The values and formatting for the URL are dependent on the target service and are documented by the service provider.
parameters: The parameters for this HTTP request. The values and formatting are dependent on the target service and are documented by the service provider.

The newly initialized request object.
Use this method to initialize an SLRequest. The value and formatting of each parameter is dependent on the target service.

SLRequestMBS.performRequest(tag as Variant = nil)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Social MBS Mac64bit Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Performs an asynchronous request and calls the RequestHandler event when done.

Some examples using this method:

SLRequestMBS.preparedURLRequest as NSURLRequestMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Social MBS Mac64bit Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an authorized URL request that can be sent using an NSURLConnectionMBS object.

An OAuth-compatible NSURLRequest object that allows an app to act on behalf of the user while keeping the user’s password private. The NSURLRequest is signed as OAuth1 by default, or OAuth2 by adding the appropriate token based on the user’s account.

Use this method to modify your request before sending. By setting the account correctly, this method will automatically add any necessary tokens.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...