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
Copy file name to clipboardExpand all lines: Docs/overview.md
+39-17Lines changed: 39 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,23 +11,6 @@ Add the following line to your Podfile:
11
11
12
12
Run `pod install`, and you should now have the latest Contentstack release.
13
13
14
-
15
-
##### Manual
16
-
17
-
1. Download the [Latest iOS SDK release](https://www.contentstack.com/docs/platforms/ios/ios_sdk_latest) and extract the zip file to your local disk.
18
-
19
-
2. Drag and drop Contentstack.framework into your project folder in Xcode.
20
-
A window will appear, prompting you to choose one of the options for adding files. Click the ‘Destination’ checkbox to copy items into the destination group’s folder. This will add the SDK to your project.
21
-
22
-
3. In the project editor, select your app under `TARGETS`. Under the `General` tab, open `Linked Frameworks and Libraries` and add the following libraries:
23
-
- CoreGraphics.framework
24
-
- MobileCoreServices.framework
25
-
- Security.framework
26
-
- SystemConfiguration.framework
27
-
28
-
4. In your target app, click on the `Build Settings` tab and add the `-ObjC` flag to `Other Linker Flags`.
29
-
30
-
31
14
#### Import Header/Module
32
15
You can import header file in Objective-C project as:
33
16
@@ -41,3 +24,42 @@ You can also import as a Module:
41
24
//Swift
42
25
import Contentstack
43
26
27
+
28
+
#### Initializing your SDK
29
+
30
+
To start using the SDK in your application, you will need to initialize the stack by providing the required keys and values associated with them:
let stack:Stack = Contentstack.stackWithAPIKey(API_KEY, accessToken: ACCESS_TOKEN, environmentName: ENVIRONMENT)
37
+
38
+
To get the api credentials mentioned above, you need to log into your Contentstack account and then in your top panel navigation, go to Settings -> Stack to view both your API Key and your Access Token
39
+
40
+
The stack object that is returned is a Contentstack client object, which can be used to initialize different modules and make queries against our [Content Delivery API](https://contentstack.com/docs/apis/content-delivery-api/). The initialization process for each module is explained in the following section.
41
+
42
+
43
+
#### Querying content from your stack
44
+
45
+
To fetch all entries of of a content type, use the query given below:
0 commit comments