Skip to content

Commit

Permalink
Updated HttpMethod to allo Ads API development.
Browse files Browse the repository at this point in the history
  • Loading branch information
linvi committed Sep 7, 2016
1 parent 733445e commit ecd1070
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Examplinvi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,7 @@ public static void Friendship_GetMultipleRelationships()
user2
};

var relationships = Account.GetMultipleRelationships(userList);
var relationships = Account.GetRelationshipsWith(userList);
foreach (var relationship in relationships)
{
Console.WriteLine("You are{0} following {1}", relationship.Following ? "" : " not", relationship.TargetScreenName);
Expand Down
2 changes: 2 additions & 0 deletions Tweetinvi.Core/Public/Models/Enum/HttpMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public enum HttpMethod
[EnumMember]
POST,
[EnumMember]
PUT,
[EnumMember]
DELETE
}
}
4 changes: 4 additions & 0 deletions Tweetinvi.WebLogic/Utils/HttpMethodExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ public static HttpMethod ToTweetinviHttpMethod(this System.Net.Http.HttpMethod m
return HttpMethod.GET;
case "POST":
return HttpMethod.POST;
case "PUT":
return HttpMethod.PUT;
case "DELETE":
return HttpMethod.DELETE;
}

throw new InvalidCastException("Cannot convert http method");
Expand Down

0 comments on commit ecd1070

Please sign in to comment.