You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[extensionObject execute:^(BuiltResponseType responseType, id responseObject, NSError *error) {
27
58
28
59
}];
29
60
30
61
//Swift
31
62
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
32
-
var extensionObject:BuiltExtension = builtApplication.extensionWithName("hello")
33
-
extensionObject.executeWithData(["name":"Rohit"]) { (responseType, responseObject, error) -> Void in
63
+
var extensionObject:BuiltExtension = builtApplication.extension()
64
+
extensionObject.execute { (responseType, responseObject, error) -> Void in
34
65
35
66
}
36
67
37
68
38
69
@param dataParameters any data that you want to pass to the function.
39
70
@param completion this block will be called after network call if success `responseObject` will contain the response from the extension method or else nil. `error` object will contain error if any.
40
71
72
+
*/
73
+
- (void)execute:(void (^)(BuiltResponseType responseType, id responseObject, NSError *error))completionBlock;
74
+
75
+
/**
76
+
@abstract Makes a call to an extension function asynchronously.
77
+
78
+
//'blt5d4sample2633b' is a dummy Application API key
[extensionObject executeFunction:^(BuiltResponseType responseType, id responseObject, NSError *error) {
84
+
85
+
}];
86
+
87
+
//Swift
88
+
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
89
+
var extensionObject:BuiltExtension = builtApplication.extensionWithKey("new_extensionkey")
90
+
extensionObject.executeFunction { (responseType, responseObject, error) -> Void in
91
+
92
+
}
93
+
94
+
@param completion this block will be called after network call if success `responseObject` will contain the response from the extension method or else nil. `error` object will contain error if any.
95
+
96
+
*/
97
+
- (void)executeFunction:(void (^)(BuiltResponseType responseType, id responseObject, NSError *error))completionBlock;
98
+
99
+
/**
100
+
@abstract set request url and request type.
101
+
102
+
//'blt5d4sample2633b' is a dummy Application API key
0 commit comments