diff --git a/DIOSNode.h b/DIOSNode.h index 5ac4ef8..35d2ede 100644 --- a/DIOSNode.h +++ b/DIOSNode.h @@ -44,4 +44,5 @@ -(NSDictionary *) nodeGet:(NSString *)anNid; -(NSDictionary *) nodeSave:(NSMutableDictionary *)node; -(NSDictionary *) nodeDelete:(NSString *)nid; +-(NSDictionary *) nodeGetIndex; @end diff --git a/DIOSNode.m b/DIOSNode.m index c43be14..44423ce 100644 --- a/DIOSNode.m +++ b/DIOSNode.m @@ -73,6 +73,13 @@ -(NSDictionary *) nodeSave:(NSMutableDictionary *)node { [self runMethod]; return [self connResult]; } +-(NSDictionary *) nodeGetIndex { + [self setMethod:@"node.get"]; + [self setRequestMethod:@"GET"]; + [self setMethodUrl:[NSString stringWithFormat:@"node"]]; + [self runMethod]; + return [self connResult]; +} - (void) dealloc { [super dealloc];