Skip to content

Commit 0016664

Browse files
committed
post node example added.
1 parent 9c55202 commit 0016664

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ Create instance of manager , set accept header.
4343
}
4444
```
4545
### `POST` Request on node
46-
Set Authorization if any required. Build parameters and POST a node
46+
Set Authorization if any required. Build parameters and POST a node. Here if you are posting an article pass bundle type as ```@"article"``` and pass parameters accordingly.
4747
4848
```objective-c
4949
Drupal8RESTSessionManager *manager = [[Drupal8RESTSessionManager alloc]init];
5050
51-
[manager.sessionManager.requestSerializer setValue:@"Basic cm9vdDprfjNpVHJhaEQ=" forHTTPHeaderField:@"Authorization"];
51+
[manager.sessionManager.requestSerializer setValue:@"your base 64 basic auth string " forHTTPHeaderField:@"Authorization"];
5252
5353
5454
NSDictionary *parameters= @{@"uid":@[@{@"target_id":@"1"} ],@"field_tag":@[@{@"target_id":@"1"}],@"body":@[@{@"value":@"This is text",@"format":@"full_html"}],@"title":@[@{@"value":@"Tip Via Drupal 8 iOS sdk"}]};

0 commit comments

Comments
 (0)