public OvhCredential requestToken ( String redirection ) throws IOException { OvhAccessRule [ ] accessRules = new OvhAccessRule [ this . accessRules . length ] ; // {GET POST PUT DELETE} /* for ( int i = 0 ; i < this . accessRules . length ; i ++ ) { String rule = this . accessRules [ i ] ; int p = rule . indexOf ( " " ) ; if ( p == - 1 ) throw new IOException ( "Invalid rule " + rule ) ; String mtd = rule . substring ( 0 , p ) ; String path = rule . substring ( p + 1 ) ; accessRules [ i ] = new OvhAccessRule ( ) ; accessRules [ i ] . method = OvhMethodEnum . valueOf ( mtd . toUpperCase ( ) ) ; accessRules [ i ] . path = path ; } ApiOvhAuth auth = new ApiOvhAuth ( this ) ; return auth . credential_POST ( accessRules , redirection ) ; }
Request for a new Token with full access