FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
contentstack-ios/Contentstack/Contentstack.h at master · contentstack/contentstack-ios · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
contentstack
/
contentstack-ios
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
3
Code
Issues
0
Pull requests
1
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
contentstack-ios
/
Contentstack
/
Contentstack.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
92 lines (68 loc) · 2.73 KB
Breadcrumbs
contentstack-ios
/
Contentstack
/
Contentstack.h
Copy path
File metadata and controls
92 lines (68 loc) · 2.73 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
//
//
Contentstack.h
//
Contentstack
//
//
Created by Reefaq on 22/06/15.
//
Copyright (c) 2015 Contentstack. All rights reserved.
//
//
sdk-version: 3.10.1
#
import
<
Foundation/Foundation.h
>
#
import
<
Contentstack/Config.h
>
#
import
<
Contentstack/Stack.h
>
#
import
<
Contentstack/ContentType.h
>
#
import
<
Contentstack/Taxonomy.h
>
#
import
<
Contentstack/Entry.h
>
#
import
<
Contentstack/Query.h
>
#
import
<
Contentstack/Asset.h
>
#
import
<
Contentstack/AssetLibrary.h
>
#
import
<
Contentstack/QueryResult.h
>
#
import
<
Contentstack/Group.h
>
#
import
<
Contentstack/SyncStack.h
>
#
import
<
Contentstack/CSURLSessionDelegate.h
>
@class
Stack;
BUILT_ASSUME_NONNULL_BEGIN
@interface
Contentstack
:
NSObject
/*
*----------------------------------------------------------------------------------------
* @name Intialize Stack
*-----------------------------------------------------------------------------------------
*/
/*
*
Create a new Stack instance with stack's apikey, token, environment name and config.
//Obj-C
Config *config = [[Config alloc] init];
config.host = @"customcontentstack.io";
Stack *stack = [Contentstack stackWithAPIKey:@"API_KEY" accessToken:@"DELIVERY_TOKEN" environmentName:@"prod" config:config];
//Swift
let config:Config = Config()
config.host = "customcontentstack.io"
let stack:Stack = Contentstack.stackWithAPIKey("API_KEY",accessToken:"DELIVERY_TOKEN", environmentName:@"prod", config:config)
@param apiKey stack apiKey.
@param accessToken stack accessToken.
@param environmentName environment name in which to perform action.
@param config config of stack.
@return new instance of Stack.
*/
+ (Stack*)
stackWithAPIKey
:
(
NSString
*)
apiKey
accessToken
:
(
NSString
*)
accessToken
environmentName
:
(
NSString
*)
environmentName
config
:
(Config *)
config
;
/*
*
Create a new Stack instance with stack's apikey, token and environment name.
//Obj-C
Stack *stack = [Contentstack stackWithAPIKey:@"API_KEY" accessToken:@"DELIVERY_TOKEN" environmentName:@"prod"];
//Swift
let stack:Stack = Contentstack.stackWithAPIKey("API_KEY", accessToken:"DELIVERY_TOKEN", environmentName:@"prod")
@param apiKey stack apiKey.
@param token accessToken of stack.
@param environmentName environment name in which to perform action.
@return new instance of Stack.
*/
+ (Stack*)
stackWithAPIKey
:
(
NSString
*)
apiKey
accessToken
:
(
NSString
*)
token
environmentName
:
(
NSString
*)
environmentName
;
/*
*
Cancel all network request for Stack instance.
//Obj-C
[Contentstack cancelAllRequestsOfStack:stack];
//Swift
Contentstack.cancelAllRequestsOfStack(stack)
@param stack instance of Stack.
*/
+ (
void
)
cancelAllRequestsOfStack
:
(Stack*)
stack
;
@end
BUILT_ASSUME_NONNULL_END
Back
|
FazBrowse Home
|
New Git URL