Class urlparser

This class parse the URL to easily get the query parameter from the URL.Use this to get the token and valid token date.More…

#import <Core.h>

Inheritance diagram for URLParser:

Instance Methods

(id) - initWithURLString:
(NSString *) - valueForVariable:

Properties

NSArray * variables
This property represents variables.More…

Detailed Description

This class parse the URL to easily get the query parameter from the URL.Use this to get the token and valid token date.

URLParser *parser = [[URLParser alloc] initWithURLString:url];
if([parser valueForVariable:"authenticationToken"] != nil){ // check for errors NSString *token = [parser valueForVariable:@"authenticationToken"];

Method Documentation

initWithURLString:()

  • - (id) initWithURLString:
  • (NSString *)
  • url

valueForVariable:()

  • - (NSString *) valueForVariable:
  • (NSString *)
  • varName

Property Documentation

variables

    • - (NSArray *) variables

  • readwritenonatomicretain

This property represents variables.