代码之家  ›  专栏  ›  技术社区  ›  Warrior

在iPhone中集成Gigya时限制提供商?

  •  0
  • Warrior  · 技术社区  · 15 年前

    我正在我的iphone应用程序中集成Gigya。现在它提供了17个访问提供者,我只想将其限制为9个提供者。我该怎么做?

    有人把它集成到iPhone上了吗?它加载一个web视图,该视图以分组表格式显示17个提供者, see here .

    2 回复  |  直到 8 年前
        1
  •  2
  •   halfer Jatin Pandey    8 年前

    要设置Facebook和Twitter,可以使用以下代码。

    GSDictionary *pParams5 = [[GSDictionary new] autorelease];
    
    [pParams5 putStringValue:@"facebook,twitter" forKey:@"enabledProviders"]; 
    
    [gsAPI showAddConnectionsUI:pParams5 delegate:self context:nil];
    
        2
  •  0
  •   Pugalmuni Tom Tharakan    15 年前
     GSAPI *gsAPI // declare this  
    
     gsAPI = [[GSAPI alloc] initWithAPIKey:<API-KEY> viewController:self];  // i kept this in viewDidload
    
    // add this code to have facebook and twitter on provider list
    
       GSDictionary *pParams5 = [[GSDictionary new] autorelease];
       [pParams5 putStringValue:@"facebook,twitter" forKey:@"enabledProviders"];  
       [gsAPI showAddConnectionsUI:pParams5 delegate:self context:nil];
    
    
    //this method called when login fails
      -(void)gsLoginUIDidFail:(int)errorCode errorMessage:(NSString*)errorMessage context:(id)context{ }
    
    // this method called on successful login
      - (void)  gsLoginUIDidLogin:(NSString*)provider user:(GSDictionary*)user context:(id)context {} 
    

    检查是否有有效的API

    推荐文章