Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 59 lines (55 sloc) 2.01 kb
377f231 @kylebrowning Initial commit of DIOS
kylebrowning authored
1 //
2 // DIOSViews.h
3 //
4 // ***** BEGIN LICENSE BLOCK *****
5 // Version: MPL 1.1/GPL 2.0
6 //
7 // The contents of this file are subject to the Mozilla Public License Version
8 // 1.1 (the "License"); you may not use this file except in compliance with
9 // the License. You may obtain a copy of the License at
10 // http://www.mozilla.org/MPL/
11 //
12 // Software distributed under the License is distributed on an "AS IS" basis,
13 // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14 // for the specific language governing rights and limitations under the
15 // License.
16 //
17 // The Original Code is Kyle Browning, released June 27, 2010.
18 //
19 // The Initial Developer of the Original Code is
20 // Kyle Browning
21 // Portions created by the Initial Developer are Copyright (C) 2010
22 // the Initial Developer. All Rights Reserved.
23 //
24 // Contributor(s):
25 //
26 // Alternatively, the contents of this file may be used under the terms of
27 // the GNU General Public License Version 2 or later (the "GPL"), in which
28 // case the provisions of the GPL are applicable instead of those above. If
29 // you wish to allow use of your version of this file only under the terms of
30 // the GPL and not to allow others to use your version of this file under the
31 // MPL, indicate your decision by deleting the provisions above and replacing
32 // them with the notice and other provisions required by the GPL. If you do
33 // not delete the provisions above, a recipient may use your version of this
34 // file under either the MPL or the GPL.
35 //
36 // ***** END LICENSE BLOCK *****
37
38
39 #import "DIOSViews.h"
40
41
42 @implementation DIOSViews
43 - (id) init {
44 [super init];
45 [self setMethod:@"views.get"];
46 return self;
47 }
48 - (void) initViews {
49 [self setMethod:@"views.get"];
8ddfb5c Updates fixes for D7 services views 3.x, this requires the services view...
Kyle Browning authored
50 [self setMethodUrl:@"views"];
51 }
52 -(NSDictionary *) viewsGet:(NSString *)viewName {
53 [self setMethod:@"views.get"];
54 [self setRequestMethod:@"GET"];
55 [self setMethodUrl:[NSString stringWithFormat:@"views/%@", viewName]];
56 [self runMethod];
57 return [self connResult];
377f231 @kylebrowning Initial commit of DIOS
kylebrowning authored
58 }
59 @end
Something went wrong with that request. Please try again.